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 is tryparse?

729


Is c# easier than javascript?

714


List the differences between method overriding and method overloading?

709


Is c# a technology?

683


Who is a accessibility modifier “protected internal” available to ?

798


Do events have return type c#?

717


What is namespace in oops?

677


What are immutable types in c#?

704


What are the 2 types of data types available in c#?

689


What is the difference between hashtable and dictionary?

741


Can a class have static constructor?

763


Why use “using” in c#?

741


what is the default access for a class

805


Define delay signing?

726


How do I create a single-file assembly?

726