Answer the following statements true (T) or false (F)
1) The order of a method’s parameters is insignificant.
2) Methods of the same name can be declared in the same class, as long as
they have different sets of parameters (determined by the number, types and order of the parameters).
3) Overloaded methods normally perform similar tasks, but on different
types of data.
4) Any parameter in a parameter list can be declared as an optional
parameter.
1) F
2) T
3) T
4) F
You might also like to view...
The type of Excel file that is designed to store macros and Visual Basic code is an ________ file
A) .xlsx B) .xlsv C) .xlsm D) .xls
What is wrong with the following switch statement?
int ans; cout <<"Type y for yes on n for no\n"; cin >> ans; switch (ans) { case 'y': case 'Y': cout << "You said yes\n"; break; case 'n': case 'N': cout << "You said no\n"; break; default: cout <<"invalid answer\n"; } a. ans is a int b. break; is illegal syntax c. nothing d. there are no break statements on 2 cases.