Why class has only public and internal access modifier | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

Why class has only public and internal access modifier

2nd Apr 2018, 5:34 PM
subhash kumar
subhash kumar - avatar
3 ответов
0
You mean public and private? There is also protected and in C++ you also have the IMHO horrible concept of friend. What access modifier do you miss?
3rd Apr 2018, 8:34 PM
Freddy
0
thanks for answer but I am asking in c#
25th Apr 2018, 7:40 PM
subhash kumar
subhash kumar - avatar
0
Is the same for C# (and pretty much any other OO language), except for the 'friend' part. So you have private, public and protected. By the way: your original question didn't mention a language...
25th Apr 2018, 9:59 PM
Freddy