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 |
What is sealed class in c#?
Is null or empty in c#?
What does char mean in c#?
What is difference between gridview and form view?
Which string method is used for concatenation of two strings in c#?
What are the return types in c#?
what is IDisposal interface
What is dictionary collection in c#?
What?s the difference between the System.Array.CopyTo() and System.Array.Clone()?
What is the delegates in c#?
What is cshtml extension?
Hi!!! my question is how we can apply or do Themes in C#.NET? please any sample or website from where i can get the answer.