Can a structure be inherited by a class?

Answer Posted / imatoria

A class can be inherited from a class or struct.
A structure does not support inheritance and cannot be
inherited from any class or struct. So structure members
can’t be declared protected.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by delegates and explain different types of delegates?

726


What is the use of xmlserializer?

649


Describe a Struct ?

751


What is the difference between integer and double?

680


What are the different types of classes in c#?

706


What is for loop in c#?

685


Can we have multiple threads in one app domain?

709


What is _layout cshtml?

660


Should I use double or float?

687


Wcf and what is difference between wcf and web services?

711


What is the difference between final finally and finalize in c#?

694


What is Private Constructor? and it’s use? Can you create instance of a class which has Private Constructor?

761


what is a constructor? What is a destructor?

736


What are the steps for creating clr trigger

793


What is private in c#?

670