How is data security provided in Object Oriented languages?
?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the main feature of oop?

618


What does and I oop mean in text?

621


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

611


Can you explain polymorphism?

583


#include #include #include #include void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort

2066






c++ program to swap the objects of two different classes

1761


What is destructor oops?

622


officer say me - i am offered to a smoking , then what can you say

1578


Can an interface inherit a class?

557


What is encapsulation in simple terms?

537


What is the advantage of oop over procedural language?

625


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

3555


Why do we need polymorphism in c#?

684


What does and I oop and sksksk mean?

650


How do you define a class in oop?

628