30) Which type of relationship is depicted in the following code? class HamoSapiens { string name; int age; } ; class Teacher : public HamoSapiens { public: int experience; string forGrades; } ; class...


30) Which type of relationship is depicted in the following code?<br>class HamoSapiens {<br>string name;<br>int age;<br>} ;<br>class Teacher : public HamoSapiens {<br>public:<br>int experience;<br>string forGrades;<br>} ;<br>class Student : public HamoSapiens {<br>int grade;<br>boolean hasSibling;<br>} ;<br>а. Is-a<br>b. Has-a<br>c. Of-a<br>d. Was-a<br>

Extracted text: 30) Which type of relationship is depicted in the following code? class HamoSapiens { string name; int age; } ; class Teacher : public HamoSapiens { public: int experience; string forGrades; } ; class Student : public HamoSapiens { int grade; boolean hasSibling; } ; а. Is-a b. Has-a c. Of-a d. Was-a

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here