Question

In c# So far, you have created object-oriented code for individual classes. You have built objects from these classes. Last week, you created a UML for new inherited classes and objects. Finally, you have used polymorphism. When you add abstraction to this mix, you have the “4 Pillars of OOP.” Now, you begin putting the pieces together to create larger object-oriented programs.

Objectives for the project are:

  • Create OO classes that contain inherited and polymorphic members
  • Create abstracted classes and members
  • Implement inheritance and polymorphism
  • Create proper Unified Modeling Language (UML) class diagrams in Visio

Observe the following UML diagram:

вы Сontent C Get Homework Help With C X .blackboard.com/ultra/courses/_1 208B8_1/dl/outline . Set tabs aside in Microsoft е A

Recreate this UML diagram and add Student, Staff, and Faculty classes that inherit from Person. Add any methods you think will be needed. This will require planning! Your submission must include a complete UML class diagram for the entire project.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

SSolution:PERSON {Abstract Class} + Aadhar Id: Int + Name:String + Address: String +Phone: Int + Profession:String +Register(UID):Strin

EThe above Class Diagram Contains the following Classes:

Person

Student

Staff

Faculty

Technician

Person Class is an example for Representation of the Class Concept: Class is a set of Objects of the same behavior.

Student/Staff/Faculty/Doctor/Actor/Singer etc are other classes exibits Person behavior.

So, here One Class (Person) has many forms(Flavours) like Student,PG Student,Staff,Faculty/Technician represents the Polymorphic behavior of Object Oriented Technology(OOT).

Abstraction : It is the one of the best features of OOPS(OOT), which has only definition of operations and Implementation is carried out by Sub Classes. Abstract classes only specifies where as Concrete Classes will Implement.

Eg: Student Class is Abstract and PG Student is Subclass of Student

Staff is An Abstract and ,Faculty,Technician are Concrete

Inheritance: It specifies that the Characteristics of Parent(Super) Class are derived by Child(Sub) Classes:

In the above diagram Person Class is Root Class its properties are inherited by all its sub classes like Student,Staff further Faculty and PG Student

Sub Class is more powerful than super class since it can Exibit as it is or It can Modify parent or It can add new behavior to parent

Add a comment
Know the answer?
Add Answer to:
In c# So far, you have created object-oriented code for individual classes. You have built objects...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Java is an object-oriented programming language that enables us to define classes and to instantiate them...

    Java is an object-oriented programming language that enables us to define classes and to instantiate them into objects. These objects then call each other’s methods to implement the behavior of the application. The Unified Modeling Language (UML) is an object-oriented visual notation to document the design of object-oriented classes. For this discussion, you will practice designing a Java class called Course, drawing a UML class diagram for the Course class, and then implementing the Course class in Java code. Review...

  • To conclude the project, use the UML diagram you created last week and create an application in Visual Studio name...

    To conclude the project, use the UML diagram you created last week and create an application in Visual Studio named School. Once you have written the code, be sure and test it to ensure it works before submitting it. Below is the UML diagram for the basic class we created last week for your reference, but for this project be sure you use the one that you created last week. Good luck and be sure to get started early in...

  • To conclude the project, use the UML diagram you created last week and create an application...

    To conclude the project, use the UML diagram you created last week and create an application in Visual Studio named School. Once you have written the code, be sure and test it to ensure it works before submitting it. Below is the UML diagram for the basic class we created last week for your reference, but for this project be sure you use the one that you created last week. Good luck and be sure to get started early in...

  • This simple practical task is the start of a series of exercises in which you will...

    This simple practical task is the start of a series of exercises in which you will develop a small bank- ing system applying all important OOP concepts. Your first task is to complete the Account class, one of the core classes of the future program. You will need to focus on the use of classes and ob- jects and the ability to capture knowledge and behaviour within objects. The banking system you are developing must have an account, which allows...

  • Use Java please... Activity 1. Suppose we want to have an object-oriented design for an invoicing...

    Use Java please... Activity 1. Suppose we want to have an object-oriented design for an invoicing system, that includes invoices, one or more line items in each invoice, address of the invoice, list of products, etc. Try to design this system by indicating the required classes, responsibilities of each class, and the collaborating classes to fulfill each responsibility, and draw the CRC cards as well as UML diagram of the classes and their relationships. Then, indicate the methods of each...

  • Assignment Requirements I have also attached a Class Diagram that describes the hierarchy of the inheritance...

    Assignment Requirements I have also attached a Class Diagram that describes the hierarchy of the inheritance and interface behaviors . The link to the PDF of the diagram is below MotorVehical.pdf Minimize File Preview User Define Object Assignment: Create a Intellij Project. The Intellij project will contain three user defined classes. The project will test two of the User Define Classes by using the invoking each of their methods and printing the results. You are required to create three UML...

  • The following is for java programming. the classes money date and array list are so I are are pre...

    The following is for java programming. the classes money date and array list are so I are are pre made to help with the coding so you can resuse them where applicable Question 3. (10 marks) Here are three incomplete Java classes that model students, staff, and faculty members at a university class Student [ private String lastName; private String firstName; private Address address; private String degreeProgram; private IDNumber studentNumber; // Constructors and methods omitted. class Staff private String lastName;...

  • According to the given UML class diagram and classes, complete the missing part of the given...

    According to the given UML class diagram and classes, complete the missing part of the given program by using polymorphism in the main method. In the main method there are: 3 question instances, 1 arraylist for multiple choice answers, 1 arraylist for fill in the blanks answers created. Add those objects to a collection and process the collection. During processing: display the correctAnswer for each question. add the answer to the correct collection: selectionAnswers/textAnswers Specify where the polymorphic behaviours are...

  • This is the question about object-oriend programming(java) please show the detail comment and prefect code of...

    This is the question about object-oriend programming(java) please show the detail comment and prefect code of each class, Thank you! This question contain 7 parts(questions) Question 1 Create a class a class Cat with the following UML diagram: (the "-" means private , "+" means public) +-----------------------------------+ | Cat | +-----------------------------------+ | - name: String | | - weight: double | +-----------------------------------+ | + Cat(String name, double weight) | | + getName(): String | | + getWeight(): double | |...

  • Write three object-oriented classes to simulate your own kind of team in which a senior member...

    Write three object-oriented classes to simulate your own kind of team in which a senior member type can give orders to a junior member type object, but both senior and junior members are team members. So, there is a general team member type, but also two specific types that inherit from that general type: one senior and one junior. Write a Python object-oriented class definition that is a generic member of your team. For this writeup we call it X....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT