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 / mangesh

Yes!! It is definately possible to implement interface to
structure.
struct structure_name: interface_name
{}
Structure cannot be extended.
Class cannot be inherited to structure

Is This Answer Correct ?    15 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a class in unity?

660


Write a C# program to find the Factorial of n

736


What kind of the information stored inside the assembly?

743


What are properties in C#?

718


What do you mean by for each loop?

663


Explain the three services model (three-tier application). Presentation (ui), business (logic and underlying code) and data (from storage or other sources).

670


What is the difference between ref & out parameters in c#?

633


What is the use of ienumerable in c#?

721


Name some properties of thread class.

753


What is difference between value and reference types in C#.NET

729


What is the console on a mac?

667


Why is c# better than java?

666


What is the C# syntax to catch any possible exception?

702


Does c# have its own class library?

715


Can you pass parameters to destructors?

727