Dear Students, CS304-Object Oriented Programming Assignment no 2 Solution has been uploaded for Semester Spring 2018.
Due date: 05 June, 2018
Total Marks: 20
Lectures covered: 10-18
Please read the following instructions carefully before submitting assignment: It should be clear that your assignment will not get any credit if:
- The assignment is submitted after due date.
- The assignment is submitted via email.
- The assignment is copied from Internet or from any other student.
- The submitted assignment does not open or file is corrupt.
- It is in some format other than .cpp.
Note: You are supposed to submit your assignment in .cpp format. Any other formats like scan images, PDF, zip, doc, rar and bmp etc will not be accepted. All types of plagiarism are strictly prohibited.
The objective of this assignment is:
- To give you the idea of practical implementation of some concepts like, definition of classes, Data members, member functions, Constructors, Composition etc.
For any query about the assignment, contact at cs304@vu.edu.pk
We have the following part of class diagram showing composition relationship:
CS304-OOP Assignment 2 Class Diagram |
You are required to implement above class diagram (complete program) in C++ with all data members, constructors, member functions and concept (composition) given in the class diagram/table 1.
Class Name
|
Functions
|
|
ABC Company
|
-Default constructor
|
|
HomePage
|
-Default constructor
|
|
Items
|
-Default constructor
|
|
MenPage
|
-Default constructor
|
|
WomenPage
|
-Default constructor
|
|
Kidspage
|
-Default constructor
|
Table1: Classes
Note: See the sample output to view the messages you need to print in constructors of all classes.
CS304-Sample Output |
Download the solution file from the following link: