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 output parameter and parameter array?
windows c# using datagridview in edit form sql server
What are primitive types in c#?
Why is it not a good idea to insert code into InitializeComponent method when working with Visual Studio ?
What is data quality assurance?
Explain how do I get deterministic finalization in c#?
Define a jagged array in c#?
what are the contents of an assembly ?
What is the difference between array and arraylist in c#?
What?s different about switch statements in C#?
What is the difference between hashtable and dictionary in c#?
Is it possible to force garbage collector to run?