Problem Composition Strong and Weak

0

Good afternoon,

Can anyone help me with this exercise? I'm having trouble creating the classes Trigonometric Operator and OperatorAritmetico, as shown in the attached image

So we will create a new class called OperatorAritmetico that will be part of the Calculator class. Similarly, a new part class, called Trigonometric Operator, can be added to the Calculator class to perform future sine, cosine, and tangent calculations. Therefore the entire Calculator class will have two part objects: the object of type OperatorAritmetico and the object of type OperatorTrigonometric. Therefore, the Calculator project will have 5 classes: Control, User Interface, Trigonometric Operator, Operator and Calculator. We can finally draw the class diagram of the new project:

I'm using the C ++ language.

    
asked by anonymous 01.05.2018 / 20:42

0 answers