Q.2 Star University is aprivate research university that provides an exceptional educationfor undergraduates and graduate and professional students. Itincludes four schools and encompass more than 30 fields of study,many of which provide opportunities for learning and engagementthat span the state, the nation and the world. Illustrate a class diagram for creating different types of Schoolsfor Star University based on Factory Pattern.
Specifications:1.The schools are: School of Computing, School of Engineering,School of Business, School of Medicine.2.Every School class has an “academic” method.3.The class SchoolClient applies the factory class to createdifferent types of Schools.
Construct a Package Diagram to illustrate the package organization for the scenario below as depicted in Figure 2. Student object is acting as a model. StudentView will be a view class which can print student details on console and StudentController is the controller class responsible to store data in Student object and update view StudentView accordingly. In the following MVCPatternDemo, the demo class, uses the StudentController to demonstrate the use of MVC pattern. ** You can include any extra features and make your own assumption to improve the diagram. StudentView +printStudent Details ():void updates StudentController - model: Student -view: StudentView +StudentController() +setStudentName():void +getStudentName(): String. +setStudentRollNo() : void +getStudentRollNo() : String +updateView(): void uses Student -rollNo String -name: String +getName() : String +setName(): void +getRollNo() :String +setRollNo(): void uses Figure 2: MVC Diagram MVCPatternDemo +main(): void +retriveStudentFromDa tabase(): Student
Q.2 Star University is a private research university that
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am