Association class with a derived type

8/12/2019

I would like to know if the following class diagram is logically correct or not, i.e. a parent class, VirtualisationContainer, is associated with class KubernetesPod, DockerContainer is a type of VirtualisationContainer, and KubernetesPod is composed of DockerContainer. Is this correct from the object oriented point of view? Specifically, can a derived type of a class can be used to compose an associated class?

class diagram

-- user3364247
associations
class-diagram
docker
kubernetes
object-oriented-analysis

0 Answers