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
What are the properties of string?
Which is faster hashtable or dictionary?
Can private virtual methods be overridden in c#.net?
Is c# easier than javascript?
What operators can be used to cast from one reference type to another without the risk of throwing an exception?
What is the Signification of the "new " keyword in C#? example
When can a derived class override a base class member?
Explain About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to generate the strong names & its use.
Explain About .NET Framework
If I return out of a try/finally in c#, does the code in the finally-clause run?
What are the methods in c#?
Can scriptable objects have methods?
What are data types with examples?
Explain the serialization in .net
What is string in c# net?