how to instantiate a class in java code example
Example 1: create instance object java
myCar = new Car();
Example 2: instantiate a class java
When you create an object, you are creating an instance of a class, therefore "instantiating" a class
myCar = new Car();
When you create an object, you are creating an instance of a class, therefore "instantiating" a class