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 Delegate and what is it used for ?

575


What is difference between a function and a method?

493


What is data binding c#?

521


Can we extend static class in c#?

474


What is the .NET collection class that allows an element to be accessed using a unique key?

596






What is a struct in C#?

555


3. Use layered architecture for coding. s.no name description 1 abc xxxxxxxxx 2 abc xxxxxxxxx 3 4 5 6 7 8 Select all Clear all Add Delete Name Description Save close

1451


What are All kind of access specifiers for a class and for methods

549


what is the equivalent to regsvr32 and regsvr32 /u a file in .net development?

544


Explain the working of serialization?

485


What are the fundamental principles of oo programming?

496


What is the default value of datetime in c#?

488


What is the data type for bit in c#?

472


What is dll file in c#?

519


What is type cast in C#?

563