adplus-dvertising
frame-decoration

Question

Which among the following is wrong?

a.

class student{ }; student s;

b.

abstract class student{ }; student s;

c.

abstract class student{ }s[50000000];

d.

abstract class student{ }; class toppers: public student{ }; topper t;

Answer: (b).abstract class student{ }; student s;

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which among the following is wrong?

Similar Questions

Discover Related MCQs

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?

Q. If a function can perform more than 1 type of tasks, where the function name remains same, which feature of OOP is used here?

Q. If different properties and functions of a real world entity is grouped or embedded into a single element, what is it called in OOP language?

Q. Which of the following is not feature of pure OOP?

Q. Which among the following doesn’t come under OOP concept?

Q. Which feature may be violated if we don’t use classes in a program?

Q. How many basic features of OOP are required for a programming language to be purely OOP?

Q. The feature by which one object can interact with another object is:

Q. ___________ underlines the feature of Polymorphism in a class.

Q. Which feature in OOP is used to allocate additional function to a predefined operator in any language?

Q. Which among doesn’t illustrates polymorphism?

Q. Exception handling is feature of OOP. State True or False.

Q. Which among the following, for a pure OOP language, is true?

Q. OOP provides better security than POP:

Q. Which among the following best describes polymorphism?

Q. What do you call the languages that support classes but not polymorphism?