Once a class has been defined, you can create objects from the class blueprint using the new keyword followed by the class identifier.
svg viewer
We usually don’t create objects for the sake of just creating them, rather, we want to work with them in some way. For this reason, we assign the object to a variable. Let’s instantiate our Person class.
For ease, the code for creating the class is also provided below.