logo

Object Oriented Programming Assignment | Answers

   

Added on  2022-08-12

7 Pages327 Words30 Views
 | 
 | 
 | 
Running head: OBJECT ORIENTED PROGRAMMING
OBJECT ORIENTED PROGRAMMING
Enter name of the Student:
Enter name of the University:
Author note:
Object Oriented Programming Assignment | Answers_1

OBJECT ORIENTED PROGRAMMING1
Question 1
i) Classes:
Four classes are present that are User, ProductOwner, ScrumMaster and
TeamMember.
I) Abstract class:
ProductOwner, ScrumMaster and TeamMember are abstract classes.
II) Super class:
User is super class of respective three sub classes.
III) Sub class:
ProductOwner, ScrumMaster and TeamMember are sub classes of super class User.
ii) Inheritance:
ProductOwner, ScrumMaster and TeamMember inherit the AccessPrivilege() method
from the super class User.
iii) Attributes:
The attributes are:
a) id and phone with integer data type.
b) login, password, name, email and address with String data type.
iv) Methods:
AccessPrivilege(), CreateProject() and DeleteProject() are methods in this UML.
v) Relationships:
Object Oriented Programming Assignment | Answers_2

OBJECT ORIENTED PROGRAMMING2
Generalization is used in this UML diagram.
Question 2
Figure 1: Source code for Question 2
(Source: Created by author)
Figure 2: Output for Question 2
(Source: Created by author)
Object Oriented Programming Assignment | Answers_3

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Object Oriented Software Concepts
|8
|1568
|44

OBJECT ORIENTED PROGRAMMING.
|5
|369
|484

Class And objectives in Java Laguage
|13
|1461
|20

Unit 20 Advanced Programming - Assignment
|31
|3536
|337

Object Oriented Design for Genetic Algorithm Solver
|8
|1573
|93

C++ Linked List Math Formula Editor
|3
|1237
|618