java - Is the driver class (Main class) an association, aggregation, or composition? -
i've been wondering kind of relationship main class (controlling other classes in non-gui program) has other classes?
for illustration class instantiated in class containing main method , classes main method interacts such getting homecoming value.
edit: should included in uml? because professor includes (i didn't know called driver class) , book im reading apparently doesn't include it, no isn't homework.
it association because interacts it. can aggregation because made of several of class. , class doesn't create sense without (in programme implementation) think composition because composition aggregation , aggregation in turn type of association. although several responses posted sound reply wrong.
none of these. main method static. doesn't belong object. don't have association. main method uses instances of other classes, that's all.
java oop class object uml
No comments:
Post a Comment