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
What is the difference between gettype and typeof in c#?
What is a base class in C#?
What namespace is list in c#?
What is datetime parse in c#?
Define a strong name in .net?
Why do we need collections in c#?
Explain states of a thread in c#?
What are class fields?
What is Named parameter in C#?
Can an array be null c#?
2. What happened when BO object has been called?
What is the difference between “dispose” and “finalize” variables in c#?
What is private variable?
How does c# generics and c++ templates compare?
Which is better javascript or c#?