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

is it possible to inherit a class but methods declared in
the class should not be inheritable i possible how?

Answer Posted / aakanchha

Yes..!!
We can define a method as "private" ,so the method will not
be inherited.

and by 'sealed' we can prevent overriding but can not
prevent inheriting .

Is This Answer Correct ?    17 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many kinds of elements an array can have?

997


What type of data type conversion happens when the compiler encounters the following code?

986


What is the difference between package and interface?

972


Who is a accessibility modifier “protected internal” available to ?

1074


What is keywords in c#?

944


Explain dataset.acceptchanges method in .net?

1002


Can enum be null c#?

1096


In which order the constructor is called for an inherited class?

1113


Is linkedhashset synchronized?

1178


Is string a primitive data type in c#?

907


Why do we use dataset in c#?

1032


what are pointer types in c#

1024


What is a generic class?

1016


What are the 2 kinds of data type conversions in c#?

928


What is session and cookies in c#?

1012