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
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, learning, and sharing knowledge.