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

Access                      public   protected   private
members of the same class   yes      yes         yes
members of derived classes  yes      yes         no
not members                 yes      no          no
Jump to Post

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 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.