write the Syntax for Function or Method Overriding?
Answer Posted / pritam kumar
class parent
{
public virtual void print()
{
Console.Writeline ("method from parent class");
}
}
class child:parent
{
public override void print()
{
Console.Writeline("method from base class ");
}
}
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is constructors, explain with syntax
What are the uses of delegates in c#?
Why is xml called extensible?
What is string concatenation?
What is the difference between and xml documentation tag?
What is the delegate in c#?
What is console programming language?
what is full assembly reference
What is attribute and reflection in c#?
What is private protected in c#?
What is Assembly. and Describe type of assembly. why most developer happy with private assembly.
Is multilevel inheritance possible in c#?
What is the use of static members with example using c#.net.
Define c# and list the features.
how to Create a datagridview control with check box column with 8rows in it, the maximum number of check boxes checked should be 3, when user checks the 4th corresponding message should be displayed and check box should be checked. User can uncheck the checked boxes Note: read-only property should not be used