How is data security provided in Object Oriented languages?
?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a c++ program to display pass and fail for three student using static member function

2814


can inline function declare in private part of class?

3658


What do you mean by Encapsulation?

640


What is destructor oops?

623


What are functions in oop?

582






What is the advantage of oop over procedural language?

627


What is encapsulation with example?

578


Explain virtual inheritance?

682


When not to use object oriented programming?

572


Can you explain polymorphism?

583


What is abstraction oop?

623


What is meant by multiple inheritance?

738


What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

1983


• What are the desirable attributes for memory managment?

1725


Can static class have constructor?

585