CAN YOU INHERIT PRIVATE MEMBERS OF A CLASS?

Sumit Kesarwani

Total Post:782

Points:3910
Posted by  Sumit Kesarwani
C# 
C#
 1123  View(s)
Ratings:
Rate this:
  1. Sumit Kesarwani

    Post:782

    Points:3910
    Can you inherit private members of a class?

    No, you cannot inherit private members of a class because private members are accessible only to that class and not outside that class.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!