Przedstawić kod C++ w postaci diagramu UML
1.
class A
{
private:
int Z1, Z2;
public:
A();
A(int x, int y);
}
_____________________________________________________________________________
2.
class A
{ private: int Z1, Z2;
};
class C {};
class B: protected A
{ private:
A *X[];
C *Y;
};
_____________________________________________________________________________
3.
class B;
class A
{ private:
B *a1;
};
class B
{ private:
A *b1[10];
};
_____________________________________________________________________________
4.
class Osoba
{ class Adres
{
string miescowosc;
string ulica;
} adres_staly;
};
_____________________________________________________________________________
5.
class T
{
enum day {po, wt, sr, cz, pt, so, nd} dzien_tygodnia;
class Data
{ int rok, miesiac, dzien_misiaca;} termin;
};
Przedstawić diagram UML w postaci kodu C++
1.
2.
3.
4.
5.