when I have Super class Named Person
public class Person {
int Mobilenum;
String Name;
double GPA;
public Person() {
GPA = 2.23;
Name = "Ramez";
}
and in the subclass when I make default constructor
if I want him to take same constructor like the Person class and what if I left the default constructor blank in the employee class
I have to make it like this?
public Employee() {
super();
}
or I don't have to write the Super keyword because it's a default constructor?