can it possible to acees the virthual method using the
override method object?
plz give me the example
Answers were Sorted based on User's Feedback
Answer / aspdev556
class BaseClass
{
public virtual Method(){}
}
class DerivedClass
{
public override Method()
{base.Method();}
}
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / 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 |
how to implement a web service in .net
What do constructors do in c#?
how can i display crystalreport in button click? am working with VS2005
Why is c# good for games?
What is COM Interoperability?
What is asynccallback c#?
What is a thread c#?
What is xor operation?
How do you restrict the type which can be used in custom generic?
Define sealed classes in c#?
What is dictionary class in c#?
How many bytes is a char c#?