Classes and Objects – Multiple Choice Questions (MCQs)
-
-
14. How do you access an instance variable of an object?
-
15. How do you call an instance method of an object?
-
16. What are static variables (or class variables)?
-
17. What are static methods (or class methods)?
-
18. How do you access a static variable?
-
19. How do you call a static method?
-
20. What is method overloading?
-
21. What is method overriding?
-
22. What is the purpose of the `final` keyword when applied to a class?
-
23. What is the purpose of the `final` keyword when applied to a method?
-
24. What is the purpose of the `final` keyword when applied to a variable?