+ 4

I need some help with PHP classes

I have this UML diagram but i don't know how to write the right code for it :( -----Calculator------- + add : string + sub : string + count : int + num1 : int + num2 : int -------------- Calculator(int,int,string,string) +add(): +sub(): ______________________ ------$cal:Calculator------ +self:: $ add : Add +self:: $sub : Sub ++self:: count :int + num1 : 5 + num2 : 2

7th Mar 2018, 5:42 PM
あお â™Ș
あお â™Ș - avatar
2 Answers