← Quiz: Abstract Classes and Interfaces: all 10 questions
Quiz: Abstract Classes and Interfaces · Question 1 of 10
Can you create an object of an abstract class with new?
Can you create an object of an abstract class with new?
- A.Yes, always
- B.No
- C.Only if it has a constructor
- D.Only inside main
Answer & explanation
Correct answer: No
Abstract classes can't be instantiated, though they can have constructors used by subclasses.
Can you get the rest right without peeking?
Take the timed Quiz: Abstract Classes and Interfaces quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →