saving . . . saved Constructor has been deleted. Constructor has been hidden .
Constructor
Title
Question
Can we call sub class constructor from super class constructor?

Java Calling-methods-of-the-superclass 02-03 min 10-20 sec 10-12-22, 11:17 a.m. 21bca089@hicas.ac.in

Answers:

Good day.
There is an way to call the constructor of the super-class using method overriding.
Logically processing your question, the question arises on how to define the constructor in the super-class of the sub-class?
I believe any other way is not possible.
Have a great day ahead.
17-01-23, 11:29 p.m. maaz.khan25925@gmail.com


Log-in to answer to this question.