What does c+ in (private,public,protect) means? Why is this used in c programming?
Asked by Akber Ali M
-
1 Answer
-
These are called access modifiers in C++, basically they determine if the date of one class can be accessed by others or not. Data introduced in public are free to be used by other classes, private prevents this and protect enables access to inherited classes.
C is not object oriented and so does not provide these access specifiers.
Related Questions
Taking an Exam? Selecting a College?
Get authentic answers from experts, students and alumni that you won't find anywhere else
Sign Up on ShikshaOn Shiksha, get access to
- 63k Colleges
- 963 Exams
- 610k Reviews
- -50000 Answers