Question: What is the difference between extending a class and instantiating an object? Group of answer choices A object extends another object by using the extends

What is the difference between extending a class and instantiating an object?
Group of answer choices
A object extends another object by using the extends keyword in the object declaration. The new object inherits the variables and methods of the the object extended. The new keyword can be used to instantiate an class of that belongs to a object. The class can use the public variables and public methods of the object.
A class extends another class by using the extends keyword in the class declaration. The new class inherits the variables and methods of the the class extended. The new keyword can be used to instantiate an object of that belongs to a class. The object can use the public variables and public methods of the class.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!