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 garbage collection deals with circular references.
What is tryparse?
Is string primitive?
What is int16?
Does the variables of a private class-level inherited?
What is a static field?
What are the different types of comments in c#?
List some of the basic string operation?
What are generations and how are they used by the garbage collector?
What is the property of a class in c#?
What is string interpolation in c#?
What is a datacontract?
What is the difference between iqueryable and ienumerable?
When should I throw an exception?
What is using in c#?