If we inherit a class do the private variables also get
inherited ?

Answer Posted / rathika

It will be inherited but cannot be accessible.

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of flag in c#?

493


What is the difference between ref and out parameters in c#?

460


What are the 2 kinds of data type conversions in c#?

512


What is datagrid c#?

475


What is a virtual property. Give an example?

524






What is a cshtml file?

536


Explain clr in brief.

554


Describe the ways of cleaning up objects in c#.

522


What exactly is serverless?

426


What are the properties of c#?

492


Which .gang of four. Design pattern is shown below?

500


Can properties be static in c#?

550


What is connection pooling in ado.net?

549


What is the difference between wrapper class and primitive?

464


What is difference between ilist and list in c#?

486