5.28 Class Objects and Methods
25. What is an inner class?
26. Does out class have access to inner class variable? Why or why not?
27. What is an anonymous inner class?
Long-answer Questions
28. Explain how Java achieves encapsulation, data hiding and polymorphism. Explain with
suitable examples.
29. Show how a class is defined in Java. Explain how instances of objects are created. What is
the role of the new operator in the creation of instance of objects.
30. Explain method overloading with examples.
31. Explain Final keyword when used with variables, methods and classes with suitable examples.
32. Explain access control mechanism of Java.
33. Explain the working of nested classes in Java. What special restrictions apply to inner classes?
34. ...