TurkuBasicOOPinJava / Week 5: Class hierarchies /07B. Corresponding methods
KaiquanMah's picture
Create 07B. Corresponding methods
f94ce27 verified
raw
history blame
611 Bytes
Arrange the method definitions in boxes
according to which method definition they could overwrite in the succeeding class.
List 1: Valid calculate Methods - calculate(int first, int second)
calculate(int a, int b)
calculate(int num1, int num2)
List 2: Valid average Methods - average(double a, int b)
average(double a, int b)
average(double first, int second)
List 3: Invalid/Non-Matching Methods
calculate(double n1, double n2)
calculate(int a, int b, int c)
calculate(int num1, double num2)
aveage(int num) [Misspelled/Incorrect parameters]
average(int a, double b)
average(int first, double second)