Q. What is true about protected constructor?

  • (A) Protected constructor can be called directly
  • (B) Protected constructor can only be called using super()
  • (C) Protected constructor can be used outside package
  • (D) protected constructor can be instantiated even if child is in a different package
πŸ’¬ Discuss
βœ… Correct Answer: (B) Protected constructor can only be called using super()

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
210
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Priyanka Tomar
Publisher
πŸ“ˆ
89%
Success Rate