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

What are scriptable objects?

687


Name some string escape sequences in c#.

778


What are the Types of optimization and name a few and how do u do?

714


What is the use of inheritance in c#?

658


Is there an equivalent of exit() for quitting a c# .net application?

711


Explain the ways to deploy an assembly?

703


Write a program in C# for checking a given number is PRIME or not.

837


What is delegates in c#?

669


What is difference between private and protected in c#?

658


What are the different types of delegation?

633


What is a service layer c#?

630


What are the types of methods in c#?

661


What is meant by unicode characters?

745


Why do I get a "cs5001: does not have an entry point defined" error when compiling?

734


What is instantiating a class?

703