Does OOP provide better security than POP?

Bảo Vy

Member
Does OOP provide better security than POP?
A. Always true for any programming language
B. May not be true with respect to all programming languages
C. It depends on type of program
D. It’s vice-versa is true
 
Answer: a
Explanation: It is always true as we have the facility of private and protected access specifiers. Also, only the public and global data are available globally or else the program should have proper permission to access the private data.
 

Tìm kiếm

Back
Top