Multiple Choice
Which statement correctly declares a sedan object of the Car class?
A) sedan Car = new sedan() ;
B) Car sedan = new sedan () ;
C) Car sedan = new Car() ;
D) new sedan() =Car () ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q1: How are real-life examples of inheritance similar
Q2: When you instantiate an object that is
Q3: If a programming language does not support
Q4: In a UML diagram, an inheritance relationship
Q5: When you employ _, your data can
Q7: Sometimes the superclass data fields and methods
Q8: An error is generated by the compiler
Q9: Subclasses are more specific than the superclass
Q10: In Java, all instance method calls are
Q11: Using a class named Student , write