Polymorphism

0%

Polymorphism is achieved by

Correct! Wrong!

Runtime Polymorphism is achieved by ______

Correct! Wrong!

What kind of polymorphism behavior do you see in below class?
public class Addition
{
public int Add(int x, int y)
{
return x + y;
}

public string Add(string x, string y)
{
return x + y;
}

public float Add(float x, float y)
{
return x + y;
}

}

Correct! Wrong!

Which binding means that an object is bound to its function call at compile time.

Correct! Wrong!

Which keyword specifies that the method can be override in the sub class?

Correct! Wrong!

Which keyword is used to hide method?

Correct! Wrong!

Which one is the best description of polymorphism?

Correct! Wrong!

What is output of the below program?
class Program
{

static void Main()
{
Car car = new A6();
car.Speed();
Console.ReadLine();
}
}

public class Car
{
public virtual void Speed()
{
Console.WriteLine("Speed is 60kmh");
}
}


public class Audi : Car
{
public override void Speed()
{
Console.WriteLine("Speed is 120kmh");
}
}

public class A6 : Audi
{
public new void Speed()
{
Console.WriteLine("Speed is 200kmh");
}
}

Correct! Wrong!

Method overloading can be in only one class.

Correct! Wrong!

What is method hiding?

Correct! Wrong!

Polymorphism
Result
Begineers!
You need to work hard, here is the tutorial on polymorphism
Result
Intermediator!
Yor are good but there is work to be done here is the tutorial on polymorphism
Pro!
Yor are excellant here is the tutorial on polymorphism

Leave a Reply

Your email address will not be published. Required fields are marked *