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

How can we set class to be inherited, but prevent the method from being over-ridden?

0 Answers  


How can you set image source dynamically from c# application to ”test.png” file?

0 Answers  


What is .edmx file?

0 Answers  


Explain the differences between static, void and public in c#?

0 Answers  


Is it possible to inherit multiple interfaces?

0 Answers   Siebel,






What is difference between Convert.ToString(variable) and variable.ToString()

4 Answers   Mascon,


Can you inherit multiple interfaces?

3 Answers  


What is difference between override and new in c#?

0 Answers  


Define strong name in c#?

0 Answers  


What is type casting. Explain it with reference to classes.

2 Answers   HCL, JPMorgan Chase,


List the 5 different access modifiers in c#?

0 Answers  


What’s thread.sleep() in threading ?

0 Answers  


Categories