*Based on answers A-E, which option is correct?
2. Assuming there exists a Java class named "Fruits", which can create an instance named "f1"
of the "Fruits" class that calls the default constructor for initialization?
A. Fruits(f1) = new Fruits();
B. Fruits f1 = new();
C. Fruits f1 = new Fruits();
D. Fruits *f1 = new Fruits();
E. Fruits *f1 = new Fruits;
C. Fruits f1 = new Fruits();
Comments
Leave a comment