Can a class inherit structure.

Answers were Sorted based on User's Feedback



Can a class inherit structure...

Answer / ajay

structure are not inherited.Because structure are valutype
and class is reference type.

Is This Answer Correct ?    15 Yes 4 No

Can a class inherit structure...

Answer / shadab

Actually Sturcture are internally declared as sealed that's
the reason a class can't inherit it...

for more information go url

http://www.shadab-programminghelp.blogspot.com

Is This Answer Correct ?    5 Yes 4 No

Can a class inherit structure...

Answer / kanan

answer #2 is correct. You can not inherit structure because
it's sealed internally.

Is This Answer Correct ?    2 Yes 1 No

Can a class inherit structure...

Answer / ankita

Structures are not inheritable by classes b'coz a structure
is used to create our own data types (user defined data types).

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Sharp Interview Questions

Is array a list?

0 Answers  


How long does it take to learn c# for unity?

0 Answers  


What is a dictionary in c#?

0 Answers  


What is the difference between list and array in c#?

0 Answers  


What is datareader c#?

0 Answers  






What are fields in c#?

0 Answers  


How do you implement Inheritance in dot net ?

5 Answers   MMTS, Sea Energy,


Explain the difference between a struct and a class?

0 Answers  


update data in an xml file which resides in solution itself, using silverlight 4.0

0 Answers  


What is overloading with example?

0 Answers  


How does dependency injection work c#?

0 Answers  


What to implement on my class Finalize or IDisposable

0 Answers   HCL,


Categories