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 object and class in oops?

571


This program numbers the lines found in a text file. Write a program that reads text from a file and outputs each line preceded by a line number. Print the line number right-adjusted in a field of 3 spaces. Follow the line number with a colon, then one space, then the text of the line. You should get a character at a time and write code to ignore leading blanks on each line. You may assume that the lines are short enough to fit within a line on the screen. Otherwise, allow default printer or screen output behavior if the line is too long (i.e., wrap or truncate). A somewhat harder version determines the number of spaces needed in the field for the line numbers by counting lines before processing the lines of the file. This version of the program should insert a new line after the last complete word that will fit within a 72-character line.

1628


Why do we use class?

620


write knight tour problem which is present in datastructure

2154


Why is polymorphism important in oop?

622






What is solid in oops?

592


Get me an image implementation program.

1550


What is polymorphism used for?

561


What is oops and why we use oops?

564


What is oops?what is its use in software engineering?

547


Why do we use class in oops?

549


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1685


What is overriding in oops?

592


What is multilevel inheritance in oop?

547


What are the types of abstraction?

547