Summary
In this lesson, we have learned that classes are blueprints from which we can create objects, while objects are instances of a class and provide a specific implementation of that class. A class can be public, private, or protected. A class has a default constructor that takes no parameters. We can have user-defined constructors in Java. The this keyword is used to refer to the current instance of a class.
We then learned that inheritance is a property where a subclass inherits the properties of a superclass.
We went on to study overloading, polymorphism, annotation, and references in Java.
In the next lesson, we will have a look at the use of interfaces and the Object class in Java.