A)
-> To call super class parameterized constructor explicitly
-> To call overridden method from overriding method.
-> To refer to the variable of subclass object given by super class when sub class also has a variable with the same name.
Note:
“Super” keyword is used in the child class method only to access parent class methods.
Comments
Post a Comment