How to create an instance of a class?

Nikhil Nambiar
Apr 20, 2021

--

A simple way to create an instance of class. Like so

let var = new Class(arg1, arg2)

An instance is also called an object. This object is like a stamp of the class, you can manipulate it later, as per your liking. But on creation (a.k.a newing up of this class) all the attributes of the class will be adapted by the object.

--

--