0
problemļæ¼ of findingļæ¼ Relationship in Javaļæ¼
whats the relashon ship between these classes in java (Student class, Undergraduate class, Postgraduate class,)
3 Answers
+ 3
// Possible combination
// but not if Undergraduate contains methods that should not be accessible in Postgraduate, only if they were rewritten
class Student {
String name;
}
class Undergraduate extends Student {
String thesisTopic;
}
class Postgraduate extends Undergraduate {
String doctoralThesis;
}
+ 1
will actully that was helpful thank you for answering my Questionļæ¼