Answered step by step
Verified Expert Solution
Link Copied!

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 1:
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 2:
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: 123124
Student name: Sanad
Number of classes assigned: 4
Attendance score: 100
In C#
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Outlook 2023

Authors: James Holler

1st Edition

B0BP9P1VWJ, 979-8367217322

Students also viewed these Databases questions