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 (33)
 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
 
Difference between multi-level and multiple inheritance? Microsoft 15
What?s the difference between the System.Array.CopyTo() and System.Array.Clone()? Wipro 6
What are the the three types of DAO ?   1
boxing means converting value type to reference type and unboxing means converting reference type to value type.why we need boxing and unboxing? Value-Labs 3
interface a { Method1() Method2() } class b: a { override Method1() override Method2() } what will happen & why?   5
Can you change the value of a variable while debugging a C# application?   2
Practcle scenario where I can use abstract class and where I can use Interface   1
Can you allow class to be inherited, but prevent the method from being over-ridden?   1
class Employee { stat9c Method1() static Method2(ref a) stat9c Method3(out x) } class Employee { stat9c Method1() static Method2(ref a) stat9c Method3(out x) } what will happen & why?   2
Difference between imperative and interrogative code? Wipro 1
WHAT ARE Design Patterns USING IN DOTNET HP 3
Can you override private virtual methods?   4
 
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