Consider the following class definitions:

1.5 Consider the following class definitions:
class mathstest
{
Student student1;
}
class Student
{
String name;
}
This code represents:
A) an ‘is a’ relationship
B) a ‘has a’ relationship
C) both
D) neither


Leave a Reply