Can a structure be inherited by a class?

Answers were Sorted based on User's Feedback



Can a structure be inherited by a class?..

Answer / ranji

structure cannot be inherited by a class.

Is This Answer Correct ?    7 Yes 1 No

Can a structure be inherited by a class?..

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

Can a structure be inherited by a class?..

Answer / sss

structure is sealed type .so it is not possible to inherit by a class

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is the task perform by clr?

0 Answers  


How can I access the registry from c# code?

0 Answers  


What is reference types in c#?

0 Answers  


List the difference between interface and abstract class?

0 Answers  


What are virtual classes in c#?

0 Answers  






What are primitive data types in c#?

0 Answers  


Are attributes inherited c#?

0 Answers  


What is the difference between int16 and int32 in c#?

0 Answers  


Explain the working of serialization?

0 Answers  


What is difference between value and reference types?

5 Answers   Accenture,


You are creating a custom usercontrol, some of the newly created properties are shown in the properties window. How you can hide a new property named theme from the properties window?

0 Answers  


What is an event in c#?

0 Answers  


Categories