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)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.