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 session management in c#?

0 Answers  


If a base class has a bunch of overloaded constructors, and an inherited class has another bunch of overloaded constructors, can you enforce a call from an inherited constructor to an arbitrary base constructor?

1 Answers  


Can int be null c#?

0 Answers  


What is a helper method in c#?

0 Answers  


Is string a data type in c#?

0 Answers  


What is an inheritance ?Give an example in which inheritance is used?

0 Answers   Siebel,


What is the use of list in c#?

0 Answers  


Where static variables are stored?

0 Answers  


Why do we use hashtable in c#?

0 Answers  


Define c# and list the features.

0 Answers  


What is difference between array and arraylist in c#?

0 Answers  


What is dao in c#?

0 Answers  


Categories