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