Can a class inherit structure.
Answers were Sorted based on User's Feedback
Answer / ajay
structure are not inherited.Because structure are valutype
and class is reference type.
Is This Answer Correct ? | 15 Yes | 4 No |
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 |
Answer / kanan
answer #2 is correct. You can not inherit structure because
it's sealed internally.
Is This Answer Correct ? | 2 Yes | 1 No |
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 |
How can we set class to be inherited, but prevent the method from being over-ridden?
How can you set image source dynamically from c# application to ”test.png” file?
What is .edmx file?
Explain the differences between static, void and public in c#?
Is it possible to inherit multiple interfaces?
What is difference between Convert.ToString(variable) and variable.ToString()
Can you inherit multiple interfaces?
What is difference between override and new in c#?
Define strong name in c#?
What is type casting. Explain it with reference to classes.
2 Answers HCL, JPMorgan Chase,
List the 5 different access modifiers in c#?
What’s thread.sleep() in threading ?