Can anyone help me on the concept of classes in C++ ????
I am really confused in Private, Protected and Public specifiers also... pls can anyone help me on this..??

Recommended Answers

All 2 Replies

Member Avatar for thendrluca
Access                      public   protected   private
members of the same class   yes      yes         yes
members of derived classes  yes      yes         no
not members                 yes      no          no
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.