Files
Lab8/diagrams/uml.puml
T
2026-05-14 09:17:54 +03:00

42 lines
505 B
Plaintext

@startuml
class Property {
# double price
# string address
+ show()
+ clone()
}
class Apartment {
- int rooms
+ show()
+ clone()
}
class Car {
- string brand
- int horsepower
+ show()
+ clone()
}
class CountryHouse {
- int floors
- double landArea
+ show()
+ clone()
}
class City {
- vector<Property>
+ addProperty()
+ showAll()
}
Property <|-- Apartment
Property <|-- Car
Property <|-- CountryHouse
City o-- Property
@enduml