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 / sukriya
Is it possible to implement an interface to a structure?
Ans: A struct can implement interfaces, and it does that
exactly as classes do.
Is it possible to extend a struct?
Ans: struct cannot extend another struct
Is it possible to inherit a class to struct?
Ans: A struct cannot inherit from another struct or class,
| Is This Answer Correct ? | 38 Yes | 2 No |
Post New Answer View All Answers
How do I declare a pure virtual function in c#?
What is sqlcommandbuilder c#?
What is the boxing and unboxing in c#?
What is overriding in c#?
How do I join one form to another in c#?
What are partial types in c#?
Ho we can see assembly information?
How to get the sum of last 3 items in a list using lambda expressions?
Can a constructor be static in c#?
In a C# class we have a SortedList member m_addinProjects
we want to provide an iterator to allow the consumer of
this class access to the items in the collection. Please
provide an iterator method for the AnalyzeAddinsDLL class
below and an example of how it would be used.
namespace AnalyzeAddinsDLL
{
public class AllAddInProjects
{
private SortedList
2. What happened when BO object has been called?
How can you use abstract class and interface?
Where static variables are stored?
What is a console operator?
What are the types of inheritance in c#?