How is data security provided in Object Oriented languages?
?
Answers were Sorted based on User's Feedback
Answer / achal
in object oriented languages emphasis is laid on not to
have any global code(functions or variables.) Everything is
encapsulated inside the body of a class.
The objects of the class can access only the public members
of class. So the data mambers are more secure.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / guest
In c++,
Data is encapsulated(hidden) in the form of specifiers such as:
private: accessible only to members of class.
public: accessible everywhere.
protected :accessible only to the members that are
inherited(see inheritance)
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / ramakrishna yechuri
Data security is provided with the help of
access specifiers called private,protected.
A variable which is declared as private cannot be acceced
outside the class.
Total data is binded or encapsulated in the form of
class.
A class itself is an example for encapsulation.
| Is This Answer Correct ? | 2 Yes | 0 No |
What do we mean by a hidden argument in C++?
How to overload new operator in c++
tel me oops defination in single line
Why do we use class?
Have you ever interfaced with a database?
What is data binding?
Advantage and disadvantage of routing in telecom sector
What is multiple inheritance? Give Example
Which is better struts or spring?
Which is not an object oriented programming language?
What is polymorphism ? Explain with examples
why oops need in programming