Class
Object
New
Private
Answer is Right!
Answer is Wrong!
The correct answer is C. New.
The keyword new
is used to create a new object of a class. The computer creates the object when it processes the statement containing the new
keyword.
The keyword class
is used to define a class. A class is a blueprint for creating objects.
The keyword object
is used to refer to an instance of a class. An instance of a class is an object that has been created from the class.
The keyword private
is used to declare a member of a class as private. A private member of a class can only be accessed by other members of the same class.