Assuming there is a class that needs to have an object such as instancia
of another class to be true, how to represent it as 'tipo'
in a diagram?
I tried the following:
Is this a good representation?
Or is there a clearer representation?
PS:
window
should always receive a class instance to be accepted from where it is called, if none is requested, request the 'Main'
, that is, it will always be an instance.
keepAlive
is used in start () to define whether window
has connection to something (interferes with what is instantiated).