0
problem of finding Relationship in Java
whats the relashon ship between these classes in java (Student class, Undergraduate class, Postgraduate class,)
3 Réponses
+ 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