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
Is array a list?
How do namespaces work?
What is garbage collector and where should you use in .NET?
Is int reference type c#?
When To use HashTable In C#
Why do we use delegates?
Is a structure a class?
What is the main purpose of xml?
What is difference between override and new in c#?
What is a static field?
What is difference between virtual and override in c#?
What do you mean by jagged arrays in c#?
How does c# achieve polymorphism?
If the original method is not static you can declare an override method to be static or not?
What is xml document how do you open it?