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

Wats the diff between sealed class and private class in
inheritance

Answer Posted / robert j

We can not put private,protected, internal protected over
the classes.. it is public by default...

The main purpose of putting "sealed" for the classes is to
prevent the other classes to refer it.It's functionality
can not be shared..

The important point is , "sealed" class can inherit from
any other non-sealed classes.. But no other classes can
inherit from a sealed class..

Is This Answer Correct ?    8 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to achieve polymorphism in c#?

909


What's the difference between WindowsDefaultLocation and WindowsDefaultBounds?

1101


How do you prevent a class from being inherited in c#?

782


What is the difference between delegates and superdelegates?

852


What is callback in c#?

842


Does google use c#?

839


What is the difference between firstordefault and singleordefault?

845


How big is an int16?

834


What is a method signature in c#?

879


What is lazy t?

895


How to reverse each word in a string using c#?

995


Why static constructor is parameterless in c#?

979


What is use of abstract class in c#?

877


How big is int16?

861


Define parsing? Explain how to parse a datetime string?

917