*Based on answer choices A-E, what is the correct option?
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" correct answer
Comments
Leave a comment