Answer Posted / maloy.adhikari
abstract Class: I find a Proper ans there.
So Posting For Overriding.
Method Overriding:
Method overriding occurs when child class declares a method
that has the same type arguments as a method declared by one
of its superclass.
Method overriding forms Run-time polymorphism.
Eg1:
Class Maloy
{
virtual void hello()
{ Console.WriteLine(“Hello from Maloy”); }
}
Class Adhikari: Maloy
{
override void hello()
{ Console.WriteLine(“Hello from Adhikari”); }
}
static void main()
{
parent objmaloy = new Adhikari();
objmaloy .hello();
}
//Output
Hello from Adhikari.
..................
Hope You Understand This.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
what is complex type?
The order of the filters that get executed, if the multiple filters are implemented?
Can you explain the page life cycle of mvc?
How does work clr?
What are Scaffold templates in ASP.Net MVC?
What are child actions in ASP.Net MVC?
I want ask from plz smaple example code for Biztalkk server
what is msl?
what is entityclient?
What is RouteConfig.cs in ASP.Net MVC 4?
What are the advantages of mvc over asp.net?
If I have multiple filters implemented, what is the order in which these filters get executed?
What is edm in entity framework?
What is managed extensibility framework?
What are the 3 main components of an asp.net mvc application?