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

List some Advantages of switch-case over if else?

881


What is the use of 0 in c#?

960


Are objects passed by reference in c#?

955


What is c sharp used for?

852


What do you mean by for each loop?

886


How long can loop recorders stay in?

1120


What is the use of command builder?

988


What Is The Difference Between The System.array.copyto() And System.array.clone()?

970


Define multicast delegate? How it be used?

1011


What does question mark mean in c#?

947


Can you drink alcohol with a loop recorder?

879


How many dimensions can an array have?

851


Can the accessibility of a type member be greater than the accessibility of its containing type?

906


Can interface inherit class in c#?

942


Explain the process of polymorphism with an example?

876