Thanks for your helpful answer Fill in the blanks with the m
Thanks for your helpful answer!
Fill in the blanks with the most appropriate words or phrases. A special method (with the same name as the class) to be invoked at the time of instance creation is called ___________. Keyword _____________ is the variable pointing the current instance. To redefine a method of parent class is called method __________Solution
Answer :
1) A special method(with the same name as class) to be invoked at the time of instance creation is called...........
Answer :
constructor
Explanation :
A special method(with the same name as class) to be invoked at the time of instance creation is called constructor.
A Constructor in a class is a special type of subroutine called to create an object.
2)Keyword---------is the variabe pointing the current instance
Answer :
this
Explanation :
This keyword is the variable pointing the current instance.The This keyword can be used to refer current class instance variable.
3)To redefine a method of parent class is called method...........
Answer :
overriding
Explanation :
To redefine a method of parent class is called method overriding.Metod overriding allows a subclass to provide a specific implementation of a method i.e,already provided by parent class.
