Can a structure be inherited by a class?

Answers were Sorted based on User's Feedback



Can a structure be inherited by a class?..

Answer / ranji

structure cannot be inherited by a class.

Is This Answer Correct ?    7 Yes 1 No

Can a structure be inherited by a class?..

Answer / 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

Can a structure be inherited by a class?..

Answer / sss

structure is sealed type .so it is not possible to inherit by a class

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Can you drink alcohol with a loop recorder?

0 Answers  


What is difference between array and collection?

0 Answers  


Define encapsulation?

0 Answers   Siebel,


Which is faster array or arraylist in c#?

0 Answers  


Why we use dll in c#?

0 Answers  


In dynamic link library, which api is used for load library?

0 Answers   C DAC,


What is array? What are jagged array ?

1 Answers  


Are constructors inherited c#?

0 Answers  


What's the difference between abstraction and encapsulation?

0 Answers  


What?s the advantage of using System.Text.StringBuilder over System.String?

1 Answers  


Can we create instance of private class in c#?

0 Answers  


Can we inherit private members of class in c#?

0 Answers  


Categories