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

How does inheritance work in c#?

0 Answers  


i want display a given number into Rupees Format Like Given number is : 156735 my Expected output is 1,56,735. how to display?

6 Answers  


What is dynamic object in c#?

0 Answers  


Write one code example for compile time binding and one for run time binding? What is early/late binding?

0 Answers  


What is use of super class

4 Answers   NIIT,






Does c# support multilevel inheritance?

0 Answers  


what's the Difference between DataView and DataTable?

10 Answers  


explain the features of static/shared classes.

0 Answers  


What Is The Difference Between ViewState and SessionState?

1 Answers   Fiserv,


What is difference between field and property in c#?

0 Answers  


What is an assembly qualified name? Is it a filename? How is it different?

0 Answers  


Why hashtable is thread safe in c#?

0 Answers  


Categories