Tell me Asp.net Method Overriding.

Answers were Sorted based on User's Feedback



Tell me Asp.net Method Overriding...

Answer / snehalata

Method overriding means having a different implementation
of the same method in the inherited class. These two
methods would have the same signature, but different
implementation. One of these would exist in the base class
and another in the derived class. These cannot exist in the
same class.



Overriding methods

Overriding method definitions

In a derived class, if you include a method definition that
has the same name and exactly the same number and types of
parameters as a method already defined in the base class,
this new definition replaces the old definition of the
method.

Is This Answer Correct ?    4 Yes 1 No

Tell me Asp.net Method Overriding...

Answer / kkk

same method and same args in base and derived classes simple.

class a
{
public virtual void m1(int a,int b)
{}
}
class b:a
{
public override void m1(int a,int b){}
}

Is This Answer Correct ?    3 Yes 0 No

Tell me Asp.net Method Overriding...

Answer / sarang

Overriding method must not throw a new or broader exception
than the method in base class.
Return type must not be more restrictitive than method in
base class on which overriding is done.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More ASP.NET Interview Questions

Define Query Interface,Adref,Release?

1 Answers   Microsoft,


Do ASP.NET forms authentication cookies provide any protection against replay attacks? Do they, for example, include the client's IP address or anything else that would distinguish the real client from an attacker?

1 Answers  


When do you set "<IDENTITY impersonate="true" />" ?

1 Answers  


what is the advantage of data reader?

2 Answers  


Is viewstate secure?

0 Answers  






Describe SOA and the tenets of it?

0 Answers   Siebel,


What are the navigation ways between pages available in ASP.NET?

0 Answers   Winsol Solutions,


What is ipostback?

0 Answers  


How to stop the inheritance?

2 Answers   TCS,


What New Features comes with ASP.NET Web API 2.0?

0 Answers  


What is mvc in asp.net interview question? : Asp.Net MVC

0 Answers  


How to retrieve data row by row from a DataTable? Thanks In advance PriyaPP

3 Answers  


Categories