Help please. 1) Multiple public: and private: section are prohibited in a class?
ID: 3914093 • Letter: H
Question
Help please.1) Multiple public: and private: section are prohibited in a class? True or false 2) Overloading a binary operator as a member always require two arguments. True or false. 3) A variable declared within a function block is said to be local to the function. True or false Help please.
1) Multiple public: and private: section are prohibited in a class? True or false 2) Overloading a binary operator as a member always require two arguments. True or false. 3) A variable declared within a function block is said to be local to the function. True or false Help please.
2) Overloading a binary operator as a member always require two arguments. True or false. 3) A variable declared within a function block is said to be local to the function. True or false
Explanation / Answer
1.
Multiple public: and private: section are prohibited in a class.
False
Reason:
Since programming languages give a facility to declare the unlimited number of public an private access specifier it is false.
2.
Overloading a binary operator as a member always require two arguments
Example
true
3.
A variable declared within a function block is said to be local to the function.
int main()
{
int a,b,c; // Here a, b and c are local variables since it declare within the {} of main function
return 0;
}
True
Thank You
Plaease Rate My Answer
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.