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 are the benefits in using c# ?

1 Answers  


Can we change static value in c#?

0 Answers  


What is the do while loop code?

0 Answers  


Can you create partial delegates and enumerations?

0 Answers  


An abstract class is inherited, an Interface also inherited(multiple inheritance), How it differences.

6 Answers   Synechron,






What is the difference between c and c sharp?

0 Answers  


Explain the term inheritance in C#.

0 Answers   Deloitte, JPMorgan Chase,


What is razor view in c#?

0 Answers  


if i want to transmit binary data,,,will it be support by Webservices or any exceptions ? define

2 Answers  


What are satellite assemblies? How will you get the different language strings?

0 Answers  


how to retrive a TextBox value in to Sql database using C# windows form application coding

3 Answers  


Is learning c# hard?

0 Answers  


Categories