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

  • (A) Yes, constructors are inherited like other methods
  • (B) Only if the subclass is marked as "final"
  • (C) No, constructors are not inherited, especially private constructors
  • (D) Only if the superclass is marked as "static"
πŸ’¬ Discuss
βœ… Correct Answer: (C) No, constructors are not inherited, especially private constructors

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
135
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Priyanka Tomar
Publisher
πŸ“ˆ
80%
Success Rate