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

Can you prevent your class from being inherited and
becoming a base class for some other classes?

Answer Posted / dhanunjaya

yes,By using a keyword called "sealed".a sealed class can
never be a base class for any class,it is the bottom most
class in a class hierarchy.......so it cant be be base
class further more....

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a method signature c#?

1008


How can I create a process that is running a supplied native executable (e.g., Cmd.exe)?

1146


What is difference between managed and unmanaged code?

1049


Is string a data type in c#?

894


What is sqldatareader c#?

914


How many constructors can a class have in c#?

955


How many constructor can a class have?

1052


What is string programming language?

914


Why do we use struct in c#?

1011


What is option parameter in C#?

1016


What is nameof c#?

944


What does .length do in c#?

1003


What is dictionary collection in c#?

967


Write a program in C# for checking a given number is PRIME or not.

1116


What is asax file in c#?

1010