Key Points 5.25
26. class StdNestedDemo {
27. public static void main(String[] args) {
28. StdNested stdouter = new StdNested();
29. stdouter.UseInner(); }
30. }// end of StdNestedDemo
Output: Students Details from outer class are………
Roll Number:50595
Name:Ramesh
Total Marks:98.5
Grade:A
DOJ from inner class ………
DOJ :15/10/10
5.15 Key Points
1. Java is a pure object-oriented language and hence all programming is enclosed in classes.
2. Class: A collection of objects or an array of instances objects.
3. Object: An object is an entity.
4. Methods of a class are common to all instances of the object; each instance of an object has
its own set of attributes. Member data is also called instance variables.
5. Java’s access specifiers are Public, Private, ...