Is there any advantage to using a parameterized constructor in the parent class. Wont it be easier to use a non parameterized constructor?
Using a parameterized constructor in a parent class
What I mean is, public Person() {//constructor} and public Person(String name,String gender, int age) {//parameterized constructor}
@devanshsood2000_b7de8cac3ff0472d The use of this is not necessary now. However when you use this in advance coding it is of great help.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.