Draw a class diagram, Biology

Assignment Help:

Draw a class diagram:

You are required to provide a practical implementation in C++ for the following class diagram. You have to provide the solution in the form of classes in C++.

Class Diagram

667_Draw a class diagram.png

Figure: Object Model of Property Portal

Detail Description:

You are required to give C++ implementation of following classes:

1.      PropertyCategories

2.      Plot

3.      Flat

4.      House

Following is the description of all data member and member functions of respective classes:

Data members for PropertyCategories:

o   SocietyName: This data member will be used to know the society/town name from where flat, house or plot belongs to.  

o   Area: Total area covered by the plot, flat or house. Area will be in square feet or Marla unit.

Methods for PropertyCategories:

o   Constructor(s) and destructor.

o   Setter and getter function for Area and SocietyName data members.

Data members for Plot:

o   PlotNo: A number associated with a plot will be shown to user.

Methods for Plot:

o   Constructor(s) and destructor.

o   Setter and getter function for PlotNo data member.

o   isPlotAllotted () will ensure whether plot is already allotted or not. If plot is not already allotted to anyone then assign it to current user and make it allotted.

o   isCornerPlot () will check whether current plot is corner plot or not. You can take input from user in this regard.

o   isDeveloped () this will ensure that whether plot is in developed status or not. A plot is consider to be developed if, facilities such as electricity, gas, road etc are available, otherwise it will be consider undeveloped plot.

Data members for Flat

o   FlatNo: A number associated with a flat will be shown to user.

 

Methods for Flat

o   Constructor(s) and destructor.

o   Setter and getter function for FlatNo data member.

o   isOccupied() will check whether this flat is available for rent, selling purpose or not.  If anyone is staying in the flat then we can't rent out or sell this flat.

 Data members for House

o   HouseNo: A number associated with a house will be shown to user.

 Methods for House

o   Constructor(s) and destructor for class.

o   Setter and getter function for HouseNo data member.

o   isOccupied() will check whether this house is available for rent, selling purpose or not.  If anyone is staying in this house then we can't rent out or sell this house.


Related Discussions:- Draw a class diagram

What are called transactions, What are called Transactions? The grouped...

What are called Transactions? The grouped SQL statements are known as Transactions (or) A transaction is a collection of actions embused with ACID properties.

What do you mean by a dihybrid cross, A dihybrid cross: Determines the gene...

A dihybrid cross: Determines the genetic makeup of an organism always involves homozygous alleles. Always involves organisms that are heterozygous at all loci. Always involves alle

Factors influencing efficiency of bioconversion -carotenoids, Define Factor...

Define Factors influencing the efficiency of bioconversion? amount of provitamin A presented to the 'cell, differential conversion by stereoisomeric form, and Vit

Determine the preservation changes while cooking, Determine the Preservatio...

Determine the Preservation Changes While Cooking? While cooking, two preservation changes (at least) occur which include: 1.  Destruction or reduction of microorganisms 2

B -pleated sheets protein structure, β - Pleated Sheets In this in...

β - Pleated Sheets In this inter molecular hydrogen bonds are present Two or more polypeptide chains come together and from a sheet. Condensation in little. However

What is bioremediation, Question 1 Write a short note on the following ...

Question 1 Write a short note on the following Impactors Land fills Bio stimulation Green house effects Question 2 What is bioremediation? Give an account o

What is intermittent st depression, What is Intermittent ST Depression ? ...

What is Intermittent ST Depression ? Ans. Several patients progress from variable ST-segment depression, often associated with respiration, to the classic ST-segment chang

Atrial arrhythmias-peri operative problems, Atrial Arrhythmias :  Atl...

Atrial Arrhythmias :  Atlial fibrillation is the most common rhythm abnormality after CABG. Paroxysmal atrial tachycardia and atrial flutter are less common. Increased sympat

Myofilaments of myofibrils, Normal 0 false false false ...

Normal 0 false false false EN-IN X-NONE X-NONE MicrosoftInternetExplorer4

Lung biopsy, Lung Biopsy: As with pleural biopsy,  lung biopsy may  be  d...

Lung Biopsy: As with pleural biopsy,  lung biopsy may  be  done by  surgical exposure of the lung (open lung biopsy) with or without endoscopy using a needle designed to remove a

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd