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

What is boxing and unboxing?

3 Answers   Patni,


To call a Web service SOAP which transport protocol you use?

3 Answers   Siebel,


I have one application, one user purchase some products in my application? and another person came he is also purchase some products?how can we identify which user purchase which items? my answer is by using session id? but i dont know how? can u give me programming for that?

1 Answers  


Describe a Windows Service and its lifecycle ?

0 Answers   Siebel,


How do you do validations. Whether client-side or server-side validations are better.?

5 Answers   Microsoft,






Explain the use of dataadapter.

0 Answers  


What is a multilingual website?

0 Answers  


in database table is thier . in that table fields are photoid , photoname,photo... i want display image in the gridview

5 Answers   TCS,


What is the namespace used to store the information about the user?s locale?

1 Answers   NeoSoft, Siebel,


What are ASP.NET Web Forms? How is this technology different than what is available though ASP (1.0-3.0)?

1 Answers  


What is .net remoting?

0 Answers  


How many classes can a single .NET DLL contain?

6 Answers   SoftSol,


Categories