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.
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
- 64k Colleges
- 968 Exams
- 627k Reviews
- 1500k Answers