C / C++ Code Portfolio



Download 112,15 Kb.
bet18/30
Sana01.03.2022
Hajmi112,15 Kb.
#475852
1   ...   14   15   16   17   18   19   20   21   ...   30
Bog'liq
dddd

virtual double getArea() const;
private:
// data member describing the radius of a Circle
double radius;
};

// class for a Shape of type Square


class Square : public TwoDimensionalShape
{
public:
// prototype for a Square constructor
Square(double lengthOfSide);
// virtual function prototype to display a Square
virtual void display() const;
// virtual function prototype to get the area of a Square
virtual double getArea() const;
private:
// data member describing the side length of a Square
double lengthOfSide;
};

// class for a Shape of type Sphere


class Sphere : public ThreeDimensionalShape
{
public:
// prototype for a Sphere constructor
Sphere(double radius);
// virtual function prototype to display a Sphere
virtual void display() const;
// virtual function prototype to get the surface area of a Sphere
virtual double getSurfaceArea() const;
// virtual function prototype to get the volume of a Sphere
virtual double getVolume() const;
private:
// data member describing the radius of a Sphere
double radius;
};

// class for a Shape of type Cube


class Cube : public ThreeDimensionalShape
{
public:
// prototype for a Cube constructor
Cube(double lengthOfSide);
// virtual function prototype to display a Cube
virtual void display() const;
// virtual function prototype to get the surface area of a Cube
virtual double getSurfaceArea() const;
// virtual function ptototype to get the volume of a Cube
virtual double getVolume() const;
private:
// data member describing the side length of a Cube

Download 112,15 Kb.

Do'stlaringiz bilan baham:
1   ...   14   15   16   17   18   19   20   21   ...   30




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish