Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite0
problem of finding Relationship in Java
whats the relashon ship between these classes in java (Student class, Undergraduate class, Postgraduate class,)
2 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