Is it possible to implement an interface to a structure? Is
it possible to extend a struct? Is it possible to inherit a
class to struct?

Answer Posted / bablu

A struct type can implement an interface ya we can do that but the thing is we have to understand that struct is a value type and interface is a reference type data type so it is boxed.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c# easier than c++?

694


Can multiple inheritance implemented in c# ?

692


Explain briefly the difference between value type and reference type?

744


Is a games console a computer?

669


Is string passed by reference in c#?

686


What is yield c#?

644


Explain the feature of c# language?

669


What is difference between C# and VB.NET?

748


What is .net console?

733


I was trying to use an out int parameter in one of my functions. How should I declare the variable that I am passing to it?

738


What does it mean?

710


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

805


How do you set a class path?

615


How can you sort strings in array that are passed to method as arguments?

715


What is difference between method overriding and method overloading?

721