πŸ“Š Object Oriented Programming (OOP)
Q. What will be the output of the following program?
  • (A) compilation error: display() cannot be accessed in application
  • (B) compilation error:test class object cannot be accessed in function demo
  • (C) compilation error: variable x is private in test
  • (D) both a and b
πŸ’¬ Discuss
βœ… Correct Answer: (C) compilation error: variable x is private in test

You must be Logged in to update hint/solution

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
284
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
85%
Success Rate