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

What is semaphore in c#?

0 Answers  


How to find out that the code is written as managed or un-managed code?

0 Answers   Amazon,


Can you have more than one namespace in c#?

0 Answers  


Where is the output of TextWriterTraceListener redirected?

1 Answers  


Which of the following API is used to hide a window?

0 Answers   3i Infotech,






What is polymorphism and its types in c#?

0 Answers  


What is the difference between a constant and a static readonly field?

0 Answers  


Is versioning applicable to private assemblies?

0 Answers   Arigo Infotech,


What is concrete method in c#?

0 Answers  


How can I process command-line arguments?

0 Answers  


Explain what a diffgram, and a good use for one Define diffgram? How it be used?

0 Answers   Siebel,


define ispostback and give some examples

2 Answers  


Categories