Can we inherit a private class in chsarp? how? explain(with
code) ?

Answer Posted / hassan-ak

WHERE IS THE INHERITANCE IN THIS CODE, WE KNOW THAT INNER
CLASSES CAN BE DECLARED PRIVATE BUT THE QUESTION IS: CAN IT
BE INHERITED, SINCE A PRIVATE FEILD IS NOT ACCESSED BY SUB
CLASS SO HOW IF THE WHOLE CLASS IS PRIVATE?

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is collection a data structure?

727


How do I port "synchronized" functions from visual j++ to c#?

678


What is the syntax for calling an overloaded constructor within a constructor (this() and constructorname() does not compile)?

728


What is a cshtml file?

711


Are value types sealed?

725


How do I type a whitespace character?

757


Give an example of a ctype.

774


How do I create a dbml file?

716


What is .edmx file?

714


When can a derived class override a base class member?

695


Distinguish between finally and finalize blocks?

707


What is mvc firstordefault?

677


What are the different states of a thread?

716


Write the difference between TypeOf and GetType?

791


What is the use of dll file in c#?

668