Q. In Java, can a subclass inherit constructors from its superclass?

  • (A) Only if the subclass is marked as "final"
  • (B) Yes, a subclass inherits constructors from its superclass
  • (C) Only if the superclass is marked as "static"
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) None of the above
Explanation: Option A: Only if the subclass is marked as "final"
Explanation by: Vijay Sangwan
Option A: Only if the subclass is marked as "final"

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
134
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Vijay Sangwan
Publisher
πŸ“ˆ
96%
Success Rate