0
We have Class Vehicles, Attributes As vAriables wheels ,color,fuelcapacity,but Where is the Object. Need to know CONCEPT OF OBJ.
public class Vehicle { int maxSpeed; int wheels; String color; double fuelCapacity; void horn() { System.out.println("Beep!"); } }
3 Antworten
+ 2
You have to create it based on that clase..
Classnane myObj = new Classname(); /
+ 1
An object is an unit of structured data with the class as a template.
0
Okay just tell me which one is object here in the Above Block Of Code.