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 (150)
 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
 
what is the need of using interface in program ex:if we have a program like this interface1() { void method1(); void method(); } class a1 : interface1 { a1 b = new b(); b.method1(); b.method2(); } so without using interface also we can achieve this then wat is the need to use the interface? plz give me the answer   1
Explain About the Sattilite Assembly in .Net Technology? TCS 2
Can we return two values from a function? MD-Synergy 12
directcast(123.34,integer) - should it throw an error? Why or why not? Wipro 2
Can you prevent your class from being inherited and becoming a base class for some other classes?   3
How to make a class not inheritable other than sealed?   3
What?s the difference between // comments, /* */ comments and /// comments? Visual-Soft 2
what kind of questions (.net)to expect in a telephonic interview.This is the first time i will be facing a tele interview .Any inputs regarding this??   2
What?s an interface class? Mind-Tree 5
How can you overload a method?   3
If i have 100 objects in my application are out of scope.when first time garbage collected how many objects memory reference are free? ITC-Infotech 2
Is goto statement supported in C#? How about Java?   2
 
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