CS304 Assignment 2 Solution Fall 2017

Problem Statement:

We have the following part of class diagram showing composition relationship:

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.

See the sample output to view the messages you need to print in constructors of all classes. In case of parameterize constructors, you can select any of data member(s) according to the type of constructor.

Class Name Attribute Name Attribute Data Type Functions
 

WebSite

 

name

 

Character

-Default constructor

-One parameter overloaded constructor ()

 

WebPage

width Double -Default constructor

–Two parameter overloaded constructor ()

 

height

 

Double

 

Links

 

name

 

Character

Default constructor

-One parameter overloaded constructor ()

 Table 1: Classes

DOWNLOAD SOLUTION HERE
loading...