Question: Write in C# Instructions Create an inheritance hierarchy that is: at least three levels deep (one parent class, two child classes, one child class of
Write in C#

Instructions Create an inheritance hierarchy that is: at least three levels deep (one parent class, two child classes, one child class of one the child classes) shares at least one property through all levels has at least one property or method that is modified inside of each child class Incomplete Example: A parent class called person contains a name, a type, and a pointOfContact. Methods exist to get and set each of these fields. From this parent class is derived a child class called student. It contains the same information: a name, a type, and a pointOfContact. However, the student class also requires a GPA field. The setType method will be limited to containing [Freshman | Sophomore] and the type can only change from Freshman to Sophomore. It will not normally change from Sophomore to Freshman. Person Student -name: String -type: String -pointOfContact: String getName(): String -setName(): void -getType(): String -setType(): void -getPOCO): String -setPOCO): void Aname: String Atype: String pointOfContact: String -GPA: double getName(): String setname(): void "getType(): String setType(): void getPOC(): String -setPOCI): void +getGPA(): Double +freshToSoph(): void
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
