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

what is method overloading in c#?

788


What is c# most used for?

782


When should we use sealed class in c#?

710


What are extender provider components? Explain how to use an extender provider in the project.

704


Where’s global assembly cache located on the system?

784


Explain about finalize method?

750


What is a datacontract?

688


What is the difference between static and private constructor in c#?

742


What is the difference between abstract and virtual?

695


While debugging a C# application can you change the value of a variable?

776


What is method and function in c#?

751


List some of the basic string operation?

723


What is assembly and dll in c#?

691


Explain the difference between “as” and “is” operators used in c#?

748


How does a while loop work?

676