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

Oracle 12c SQL

Authors: Joan Casteel

3rd edition

1305251032, 978-1305251038

More Books

Students also viewed these Databases questions

Question

7. Senior management supports the career system.

Answered: 1 week ago