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...

what is new modifier in C#

Answer Posted / r.r.bharti

It is an error to use both new and override on the same
member, as the two modifiers have mutually exclusive
meanings. Using new creates a new member with the same name
and causes the original member to become hidden, while
override extends the implementation for an inherited member.

Using the new modifier in a declaration that does not hide
an inherited member generates a warning.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When not to use object oriented programming?

1178


Can an interface inherit a class?

1106


What is a class and object?

1105


Get me an image implementation program.

2044


What is an example of genetic polymorphism?

1242


What is purpose of inheritance?

1170


What do you mean by Encapsulation?

1136


What is the difference between procedural programming and oops?

1204


What exactly is polymorphism?

1182


What is methods in oop?

1032


Write a c++ program to display pass and fail for three student using static member function

3462


What are oops functions?

1077


Why is static class not inherited?

1151


What is an interface in oop?

1089


What is encapsulation in oop?

1100