adplus-dvertising
frame-decoration

Question

State True or False. Class with main() function can be inherited.

a.

True

b.

False

c.

May be

d.

Can't say

Answer: (a).True

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. State True or False. Class with main() function can be inherited.

Similar Questions

Discover Related MCQs

Q. Which among the following is false, for member function of a class?

Q. Which syntax for class definition is wrong?

Q. Which of the following pairs are similar?

Q. Which among the following is false for class features?

Q. Instance of which type of class can’t be created?

Q. Which definition best describes an object?

Q. How many objects can be declared of a specific class in a single program?

Q. Which among the following is false?

Q. Which of the following is incorrect?

Q. The object can’t be:

Q. What is size of the object of following class (64 bit system)?

class student { int rollno; char name[20]; static int studentno; };

Q. Functions can’t return objects. State True or False.

Q. How members of an object are accessed?

Q. If a local class is defined in a function, which of the following is true for an object of that class?

Q. Which among the following is wrong?

Q. Object declared in main() function:

Q. When an object is returned___________

Q. Which among the following is correct?

Q. Object can’t be used with pointers because they belong to user defined class, and compiler can’t decide the type of data may be used inside the class. State True or False.

Q. Which feature of OOP indicates code reusability?