Question
a.
Compile time error
b.
Runtime error
c.
Executes fine
d.
Executes if that member function is not used
Posted under Object Oriented Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What happens if non static members are used in static member function?
Similar Questions
Discover Related MCQs
Q. Static member functions _____________
View solution
Q. How to access members of the class inside a member function?
View solution
Q. For overloading “( )”, “[ ]” or “->” operators, a class __________
View solution
Q. If a virtual member function is defined, ___________
View solution
Q. Member functions of a generic class are _____________
View solution
Q. Member function of a class can ____________
View solution
Q. A member function can _______________ of the same class
View solution
Q. Which member function doesn’t require any return type?
View solution
Q. Which among the following is not possible for member function?
View solution
Q. What are local classes?
View solution
Q. All member functions of a local class must be ___________
View solution
Q. Can local class members access/use the general local variables (except static, abstract etc.) of the function in which it is defined?
View solution
Q. Which type of data can a local class access from the function in which it is defined?
View solution
Q. Local classes can access the type names and enumerators defined by the enclosing function.
View solution
Q. Can static variables be declared inside a local class?
View solution
Q. All the member functions of local classes are __________ by default.
View solution
Q. The enclosing function has no special access to the members of local class. (True/False)
View solution
Q. Which language can use inheritance with local classes?
View solution
Q. How many local classes can be defined inside a single function?
View solution
Q. All the data members of local class must be ___________
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Object Oriented Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!