ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Microsoft Related >> C Sharp
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions (615)
 C Sharp interview questions  C Sharp Interview Questions (722)
 ASP.NET interview questions  ASP.NET Interview Questions (1444)
 VB.NET interview questions  VB.NET Interview Questions (151)
 COM+ interview questions  COM+ Interview Questions (41)
 ADO.NET interview questions  ADO.NET Interview Questions (199)
 IIS interview questions  IIS Interview Questions (86)
 MTS interview questions  MTS Interview Questions (5)
 Crystal Reports interview questions  Crystal Reports Interview Questions (62)
 BizTalk interview questions  BizTalk Interview Questions (34)
 Dot Net interview questions  Dot Net Interview Questions (861)
 Exchange Server interview questions  Exchange Server Interview Questions (103)
 SharePoint interview questions  SharePoint Interview Questions (25)
 WCF interview questions  WCF Interview Questions (8)
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions (193)
Question
What are Sealed Classes in C#?
 Question Submitted By :: C-Sharp
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
sealed classes cannot be inherited. 
Is This Answer Correct ?    232 Yes 13 No
Vishalsharma
 
Answer
# 2
when a class defined as sealed its not possible to inherit
its class and properties to the inherited class.Its also
applicable to the class properties.Even class defined as
public its banned to inherit the class.
 
Is This Answer Correct ?    124 Yes 18 No
Senthil Kumar
 
 
 
Answer
# 3
if we want to prevent a class to be inherited then we use
the keyword sealed,
means this class will not be inherited now
 
Is This Answer Correct ?    115 Yes 11 No
Vijay Rana
 
Answer
# 4
A sealed class cannot be used as a base class. For this
reason, it cannot also be an abstract class.
 
Is This Answer Correct ?    80 Yes 17 No
Sasi
 
Answer
# 5
A Class that cannot be inherited and used by the other
classes
 
Is This Answer Correct ?    76 Yes 15 No
Nitin Kumar Tomar
 
Answer
# 6
Above All Answers Correct 
Is This Answer Correct ?    67 Yes 9 No
Hari
 
Answer
# 7
A class which restricts inheritance for security region is
called Sealed class.
Sealed class is the last class in hierarchy.
Sealed class can be a derived class but can't be a base class.
To access the members of sealed class we should create the
instance object.

Advantages of sealed class is it restrict the third party
vendor for developing new software by inheriting from our logic.
 
Is This Answer Correct ?    50 Yes 9 No
Kanchan Kora
 
Answer
# 8
Sealed class can't be inherited by subclass. 
Is This Answer Correct ?    11 Yes 1 No
Amol
 
Answer
# 9
Sealed classes cannot be inheritted by parent class and
sealed methods cannot be ovrriden
 
Is This Answer Correct ?    24 Yes 18 No
Irfan
 
Answer
# 10
A class which restricts inheritance for security region is
called Sealed class.
Sealed class is the last class in hierarchy that why a
sealed class can be a derived class but can never be a base
class.
To access the members of sealed class we should create the
instance object.

Advantages of sealed class is it restrict the third party
vendor for developing new software by inheriting from our
logic.
 
Is This Answer Correct ?    4 Yes 0 No
Mukesh Kumar
 

 
 
 
Other C Sharp Interview Questions
 
  Question Asked @ Answers
 
What is the difference between these statements obj=null and obj.dispose() Fulcrum-Logic 4
Why do we need interfaces? HCL 2
What is the Difference between read only and constant variables? SilverKey 12
can you tell me what are the steps should follow to do delay signing. HCL 1
What namespaces are necessary to create a localized application?   2
Hi to everybody. Lastweek i had taken an interview on c#. They ask what is boxing & unboxing, Masking.Please tell the answer and it is useful for me.   7
What is scavenging? HCL 2
Y go for Interface? What is use of interface?   3
What?s different about switch statements in C#?   2
Is array reference type / value type ? Accenture 6
what is an internal specifier? what happens internally when I use access specifier Internal ? rsystems 4
What is short circuit logical evaluation? TCS 1
 
For more C Sharp Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com