To use Object Properties:
To use Object Methods:
How to achieve Object instantiation:
The new operator available feature is used to achieve Object instantiation.
In the above syntax, new refers to keyword and the objecttype(arguments) refer to the constructor. The number of arguments taken by constructors varies from no arguments to one or more than one, depending on the type of object.
An example of object type with constructor taking no arguments:
It is also possible to use the same object type. For example, the Date() constructer taking
a specified date as the parameter and creating object instances for that specified date.
In this example, instances are created for the specified Date March 3,1996.