1. Object — A class instance is called an object.

2. Class — A set of instructions for building a specific type of object is called a class. Class tells the JVM, the way to create an object of that particular type.

We must consider things that an object knows and the things that object does when we are creating a class. The things that an object knows itself are called ‘instance variables”. They represent the data, and they can have unique values for each type of object. The things that an object can do are called “methods”. Typically methods are telling the behaviors of the object.

Creating a class

--

--