C# Programming - Polymorphism
Exercise : Polymorphism - General Questions
- Polymorphism - General Questions
6.
Which of the following is the correct way to overload + operator?
7.
Which of the following statements is correct?
8.
Which of the following statements are correct?
- All operators in C#.NET can be overloaded.
- We can use the new modifier to modify a nested type if the nested type is hiding another type.
- In case of operator overloading all parameters must be of the different type than the class or struct that declares the operator.
- Method overloading is used to create several methods with the same name that performs similar tasks on similar data types.
- Operator overloading permits the use of symbols to represent computations for a type.
9.
Which of the following statement is correct about the C#.NET code snippet given below?
public class Sample
{
public int x;
public virtual void fun()
{ }
}
public class DerivedSample : Sample
{
new public void fun()
{ }
}
10.
Which of the following statements is correct?
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers