+ 3
C++ only language with access specifiers??
I've done JavaScript and Python, and have never come across access specifiers, which is the most confusing concept in c++ anyway. is this unique to c++??
3 Antworten
+ 2
C# and Java also use them, sometimes referred as access modifiers. I found what I believe to be the best material about how OOPS works. Many of my long time confusions were clarified after I read this guy's explanations and examples. I will take a look at my bookmarks later and share it in here. Good luck!
+ 1
I am not sure if is that permitted in the comments, and apologize in advance if I'm breaking any rules in here. If so, I will delete it later on.
For long time I've been struggling and feeling stuck with some OOPS concepts. Finally I found what I believe to be the best explanation ever, with examples about the subject.
OOPS Concepts in Java:
Java Access Modifiers - Public, Private, Protected & Default
beginnersbook.com/2013/05/java-access-modifiers
C++/Classes
Access Specifiers:
en.cppreference.com/w/cpp/language/access
Hopefully they can be helpful for many people as they were for myself.
Disclaimer: I'm not affiliated with these websites in any way.
0
most object oriented programming languages have access specifiers