adplus-dvertising
frame-decoration

Question

If 2 classes derive one base class and redefine a function of base class, also overload some operators inside class body. Among these two things of function and operator overloading, where is polymorphism used?

a.

Function overloading only

b.

Operator overloading only

c.

Both of these are using polymorphism

d.

Either function overloading or operator overloading because polymorphism can be applied only once in a program

Answer: (d).Either function overloading or operator overloading because polymorphism can be applied only once in a program

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. If 2 classes derive one base class and redefine a function of base class, also overload some operators inside class body. Among these two things of function and operator...

Similar Questions

Discover Related MCQs

Q. Which among the following best describes encapsulation?

Q. If data members are private, what can we do to access them from the class object?

Q. While using encapsulation, which among the following is possible?

Q. Which feature can be implemented using encapsulation?

Q. Find which of the following uses encapsulation?

Q. Encapsulation helps in writing ___________ classes in java

Q. Which among the following should be encapsulated?

Q. How can Encapsulation be achieved?

Q. Which among the following violates the principle of encapsulation almost always?

Q. Which among the following would destroy the encapsulation mechanism if it was allowed in programming?

Q. Which among the following can be a concept against encapsulation rules?

Q. Encapsulation is the way to add functions in a user defined structure.

Q. Using encapsulation data security is ___________

Q. Which among the following best defines abstraction?

Q. Hiding the implementation complexity can:

Q. Class is _________ abstraction

Q. Object is ________ abstraction

Q. Abstraction gives higher degree of ________

Q. Abstraction can apply to:

Q. Which among the following can be viewed as combination of abstraction of data and code.