Polymorphism

Q1: Which of the following is the correct way to overload + operator?

A
public sample operator + ( sample a, sample b )

B
public abstract operator + ( sample a, sample b)

C
public abstract sample operator + (sample a, sample b )

D
public static sample operator + ( sample a, sample b )

E All of the above

ANS:D -

public static sample operator + ( sample a, sample b )

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.