0
Sb explain constructor please.
public class MyClass { public static void main(String[ ] args) { Vehicle v = new Vehicle("Blue"); } }
1 Respuesta
+ 12
You create a new instance of the class Vehicle represented by object v, and then initialize the object with "Blue".