-6

When an object instance is created from a class, the class's constructor function is run to create it. This process of creating an object instance from a class is called instantiation — the object instance is instantiated from the class.I am confused with term instance.Does it mean creating a copy of a class?

Nikhil
  • 1,267
  • 15
  • 16
  • creating an instance of a class is creating an object whose type is that class. – Eran Nov 16 '17 at 10:01
  • see also https://docs.oracle.com/javase/tutorial/java/javaOO/objectcreation.html –  Nov 16 '17 at 10:02
  • 4
    A "class" can be seen as a blueprint, an instance is an object that is created using that blueprint. – f1sh Nov 16 '17 at 10:03

1 Answers1

2

Creating an instance of a class is creating an object of that class type.

Example

class A{}

A a = new A();

Type of variable a is A.

Lino
  • 19,604
  • 6
  • 47
  • 65
Nisal Edu
  • 7,237
  • 4
  • 28
  • 34