How is data security provided in Object Oriented languages?
?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is inheritance write a program to show use of inheritance?

603


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

1644


What is constructor overloading in oop?

595


What does and I oop mean?

607


What are main features of oop?

621






What is abstraction in oop?

625


What is destructor example?

586


Where You Can Use Interface in your Project

1415


What are the benefits of oop?

596


Why do we use class?

620


What is the difference between abstraction and polymorphism?

604


What is use of overloading?

598


Who invented oop?

642


Why do we use oop?

593


Why is polymorphism important in oop?

621