0
I program in C and now I decided to explore the world of POO through the C#language. I see that many people talk about security and this is precisely my doubt, when programming I see that the development environment itself limits me access to private classes as well as their attributes and their methods. When I define this class as public everything that belongs to it is accessible within other classes.
1° Define as private
a class protects the programmer’s code or the user’s application?
2° If I access attributes and methods of an A class in a B class I will be compromising the security of the application?
If someone can also give me some tips related to code organization I will be grateful, because I am used to C so I have always modularized my code separated by 2 headers (functions and libraries) and 1 .c
where I call all the functions. Since C# has the advents of classes and security:
3° What would be the best way to organize everything in scripts safely?
There are many books that and people who speak several things without any foundation.
– Guilherme Nascimento
Did the answer solve your question? Do you think you can accept it? See [tour] if you don’t know how you do it. This would help a lot to indicate that the solution was useful to you. You can also vote on any question or answer you find useful on the entire site.
– Maniero