Creating Objects From a Class
Learn how to create an object from a class and then get/set its properties.
How to create an object from a class
In order to work with a class, we need to create an object of it. In order to create an object, we use the new
keyword. For example:
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy