Q. In order to restrict a variable of a class from inheriting to subclass, how variable should be declared?

  • (A) Protected
  • (B) Private
  • (C) Public
  • (D) Static
πŸ’¬ Discuss
βœ… Correct Answer: (B) Private

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
144
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Sonali Mishra
Publisher
πŸ“ˆ
96%
Success Rate