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

What is polymorphism used for?

656


Get me an image implementation program.

1637


what are the ways in which a constructors can be called?

1676


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1939


What do you mean by variable?

668






explain sub-type and sub class? atleast u have differ it into 4 points?

1933


What is polymorphism and example?

666


What are main features of oop?

732


Where You Can Use Interface in your Project

1506


What is protected in oop?

693


What is the point of polymorphism?

674


What is byval and byref? What are differences between them?

1792


Why is encapsulation used?

659


Can we have inheritance without polymorphism?

704


Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.

2675