can it possible to acees the virthual method using the
override method object?
plz give me the example
Answer Posted / javed khan
public class zzz
{
public static void Main()
{
yyy x = new xxx();
x.test();
}
}
class yyy
{
public virtual void test()
{
System.Console.WriteLine("base calss.");
}
}
class xxx : yyy
{
public override void test()
{
System.Console.WriteLine("derived calss.");
base.test();
}
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is the difference between double and decimal in c#?
What is append in c#?
What is msil in c#?
Explain About sn.exe
What are the types in c#?
What are the problem with .NET generics?
What does console readkey do in c#?
How big is an int16?
Which of the following operations can you not perform on an ado.net dataset?
How Global.asax is used ?
What is entity framework c#?
How to rotate an Image in C#?
What is the difference between a variable and a literal?
What is a dynamic assembly?
what is be the overhead, if i use binary transmission. and will it be sent using xml text or how ?