I have these 2 structs and 1 class and I want to convert them into UML class:
struct cat
{
std::string name;
int id;
};
struct dog
{
std::string name;
std::string owner;
int age;
};
class Pet
{
std::vector<cat> cats;
std::vector<dog> dogs;
//some methods
};
i made this:
thank you in advance
Some remarks :
So, also adding the modifiers I speak about in the comments of your question :
(I use cat/dog rather than Cat/Dog to follow the C++ code, but to use Cat/Dog is better)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With