Can a structure be inherited by a class?
Answers were Sorted based on User's Feedback
Answer / imatoria
A class can be inherited from a class or struct.
A structure does not support inheritance and cannot be
inherited from any class or struct. So structure members
can’t be declared protected.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / sss
structure is sealed type .so it is not possible to inherit by a class
| Is This Answer Correct ? | 0 Yes | 0 No |
Trace the O/p for a program on inheritance and Polymorphism. 3 classes A,B,C A with two methods public virtual SomeMethodA public virtual SomemoreMethodA B:A overide SomeMethodA C:B new Method SomeMethodA override SomeMoreMethodA main method { b new instance of B b.SomeMethodA b.SomeMoreMethodA b1 new instance of C b1.SomeMethodA b1.SomeMoreMethodA }
What is hierarchical inheritance in c#?
What is the difference between a private assembly and a shared assembly?
Can abstract class be sealed in c#?
Why do we use stringbuilder in c#?
What is bitwise operator in c#?
What is the process of delegation?
What is c# entity framework?
What are the types of comment in c# with examples?
Is int reference type c#?
Which attribute adorn a test class to be picked up by the NUnit GUI in the NUnit test framework?
what is an exception in .net?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)