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


Please Help Members By Posting Answers For Below Questions

How garbage collection deals with circular references.

471


What is tryparse?

519


Is string primitive?

499


What is int16?

515


Does the variables of a private class-level inherited?

560






What is a static field?

508


What are the different types of comments in c#?

495


List some of the basic string operation?

504


What are generations and how are they used by the garbage collector?

520


What is the property of a class in c#?

498


What is string interpolation in c#?

544


What is a datacontract?

484


What is the difference between iqueryable and ienumerable?

461


When should I throw an exception?

556


What is using in c#?

471