Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Create an abstract class Student.cs. Read page 329 3 public string data members: firstName, lastName, studentID Create a constructor to initialize each data member
1. Create an abstract class "Student.cs". Read page 329 3 public string data members: firstName, lastName, studentID Create a constructor to initialize each data member value . . Create read-only property for each data member. Read Page 329 Create an abstract method ImportantThing()", returns string 2. Create an interface "lMathClass.cs". Declare a method Math()", returns string . Create classes "ElementarySchoolStudent.cs", "MiddleSchoolStudent.cs" "HighSchoolStudent.cs", "CollegeStudent.cs", inherit "Student.cs" and "IMathClass.cs" to each of them . ElementarySchoolStudent.cs Constructor with three parameters for firstName, lastName, studentlD. Read page 301. o o ImportantThing() returns "Farm field trip!". O Math () returns "Basic Math." o Override toString). MiddleSchoolStudent.cs o Constructor with three parameters for firstName, lastName, studentID o ImportantThing() returns "Summer Camp!". o Math) returns "Geometry." o Override toString). . HighSchoolStudent.cs o Constructor with three parameters for firstName, lastName, studentID o ImportantThing) returns "SAT exam.". o Math() returns "Basic Algebra." o Override toString). . CollegeStudent.cs o Constructor with three parameters for firstName, lastName, studentID o ImportantThing() returns "Major.". o Math) returns "Advanced Algebra. ". o Override toString). In "Program.cs", in method "main()", create an "Student" type array with size of 4. Read page 321. 4. First element is ElementarySchoolStudent object with any first name, last name, student ID for constructor Second element is MiddleSchoolStudent object with any first name, last name, student ID for constructor
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started