Java - Constructors
Which of the following is the correct syntax for a parameterized constructor in Java?
public class Car {
String model;
int year;
// Constructor here
}Which of the following is the correct syntax for a parameterized constructor in Java?
public class Car {
String model;
int year;
// Constructor here
}this.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions