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 are Sealed Classes in C#?

Answers were Sorted based on User's Feedback



What are Sealed Classes in C#?..

Answer / aseem

If it restricts inheritance then why dont we create a
normal class. why do we require this seamled class to
inherit? can any one show with example?

Is This Answer Correct ?    3 Yes 3 No

What are Sealed Classes in C#?..

Answer / rishu

Sealed classes are used to restrict the inheritance feature of object oriented programming. Once a class is defined as sealed class, this class cannot be inherited.
In C#, the sealed modifier is used to define a class as sealed. In Visual Basic .NET, NotInheritable keyword serves the purpose of sealed. If a class is derived from a sealed class, compiler throws an error.

If you have ever noticed, structs are sealed. You cannot derive a class from a struct.

Is This Answer Correct ?    0 Yes 0 No

What are Sealed Classes in C#?..

Answer / haja

Hello Guys this is Haja,

I think the question is "What are sealed classes in C#?"
not "WHAT IS SEALED CLASS IN C#?"

The answer is "Every attribute classes are sealed class like [WebMethod], [STAThread], [Serializable] and like these attribute classes...

Is This Answer Correct ?    0 Yes 0 No

What are Sealed Classes in C#?..

Answer / atul dhivar

sealedclasses cannot be extended,but they can inherit from
other classes

Is This Answer Correct ?    2 Yes 3 No

What are Sealed Classes in C#?..

Answer / alex

sealed class used for a security purpose without using sealed class , the class must be inherited,

Is This Answer Correct ?    0 Yes 2 No

What are Sealed Classes in C#?..

Answer / sanjay

sealed classes can only be used as a base classes,they cant
be inherited.

Is This Answer Correct ?    23 Yes 27 No

What are Sealed Classes in C#?..

Answer / susheel kumar

sealed classes used only base class do not used derived class

Is This Answer Correct ?    20 Yes 32 No

Post New Answer

More C Sharp Interview Questions

What is data binding with example?

0 Answers  


What are the differences between events and delegates in c#?

0 Answers  


Explain the term inheritance in C#.

0 Answers   Deloitte, JPMorgan Chase,


Is c# int immutable?

0 Answers  


Code to run exe like mspaint,autocad etc in asp.net.

2 Answers  


What is final keyword in c#?

0 Answers  


What is the wildcard character in sql?

0 Answers  


What is reflection in c#?

0 Answers  


Are tuples immutable c#?

0 Answers  


Explain Constructor and destructor?

0 Answers  


f i give input like 1,1,4,5,6,1,2,5,4,1,2, then output should be like : 1-4, 2-2, 4-2, 5-1, 6-1 which means 1 occurs 4 times, 2 occurs 2 times like so.

7 Answers  


What are accessors?

0 Answers  


Categories