Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Part 1 : Create a class diagram that represents the description below. Vickers school is an elementary school that has two types of stakeholders (
Part :
Create a class diagram that represents the description below.
Vickers school is an elementary school that has two types of stakeholders teachers and students where a teacher can be assigned many students.
Every stakeholder has an id name, and gender. A student has number of classes assigned and an attendance score.
Part :
Create the classes needed to map the objects in the description above to code showing OOP practice.
Abstraction: The abstraction comes from the base class Stakeholder that will have a method or function called public abstract string DisplayProfile; returns a profile of a particular stakeholder
Encapsulation: Need to show the proper data, operation, and access modifiers.
Inheritance: Reuse as much as possible. Do not forget to "override DisplayProfile
Polymorphism: Show polymorphism behavior in your code.
Output example:
You chose to look at a student's profile. Here you go:
Student ID:
Student name: Sanad
Number of classes assigned:
Attendance score:
In C#
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