Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 X-Path?

2 Answers   Sherston,


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

5 Answers   Microsoft,


what are partial postbacks?

2 Answers   Infosys, Microsoft,


How do you get records number from 5 to 15 from a dataset of 100 records?

3 Answers   Syntax Softtech,


How do we implement bundling in MVC?

0 Answers   B-Ways TecnoSoft,


Can you change a Master Page dynamically at runtime?

0 Answers  


How does the regular expression validator work? What are two situations when you might want to use one?

2 Answers  


2. Why did you choose this career?

2 Answers   Schwartz Oil, Swatz Oils,


What does assemblyinfo.cs file consist of?

2 Answers   Accenture, HCL,


what is reference type to value type.

3 Answers   AG Technologies,


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

0 Answers  


what are the attributes of sitemapnode?

3 Answers   Satyam,


Categories