Question
a.
class student{ }s1,s2; s1.student()=s2.student();
b.
class student{ }s1; class topper{ }t1; s1=t1;
c.
class student{ }s1,s2; s1=s2;
d.
class student{ }s1; class topper{ }t1; s1.student()=s2.topper();
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. Which among the following is correct?
Similar Questions
Discover Related MCQs
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.
View solution
Q. Which feature of OOP indicates code reusability?
View solution
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?
View solution
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?
View solution
Q. Which of the following is not feature of pure OOP?
View solution
Q. Which among the following doesn’t come under OOP concept?
View solution
Q. Which feature may be violated if we don’t use classes in a program?
View solution
Q. How many basic features of OOP are required for a programming language to be purely OOP?
View solution
Q. The feature by which one object can interact with another object is:
View solution
Q. ___________ underlines the feature of Polymorphism in a class.
View solution
Q. Which feature in OOP is used to allocate additional function to a predefined operator in any language?
View solution
Q. Which among doesn’t illustrates polymorphism?
View solution
Q. Exception handling is feature of OOP. State True or False.
View solution
Q. Which among the following, for a pure OOP language, is true?
View solution
Q. OOP provides better security than POP:
View solution
Q. Which among the following best describes polymorphism?
View solution
Q. What do you call the languages that support classes but not polymorphism?
View solution
Q. Which among the following is the language which supports classes but not polymorphism?
View solution
Q. If same message is passed to objects of several different classes and all of those can respond in a different way, what is this feature called?
View solution
Q. Which type of function among the following shows polymorphism?
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!