Those are covered in context of Java programming examples in later sections of this on-line guide. Objects are software bundles of data and related procedures. Software objects are often used to model real-world objects you find in everyday life. Software objects interact and communicate with each other via messages . A class is a template or prototype that defines the variables and the methods common to all objects of a certain kind.
Classes inherit state and behaviour from their superclass .
Inheritance provides a powerful and natural mechanism for organizing and structuring software programs. This lesson given you a glimpse into the world of object-oriented design and development and may have whet your appetite for more. This lesson provided a basis for understanding key object-oriented terminology and concepts. Understanding these new terms and concepts is just the beginning. As you begin to design and program in the Java language, a true object-oriented language, the power of objects and classes will become apparent.