Q) What are the similarities between “this” and “super” keywords as far as constructor calling is concerned?
A)
-> this keyword is used to call the other constructor of the same class.
-> ”super” keyword is used to call the constructor of the parent class.
Comments
Post a Comment