How is data security provided in Object Oriented languages?
?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
Answer / 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 |
WAP find square root of any number (without using sqrt() )?
What is meant by multiple inheritance?
Write a program to find out the number of palindromes in a sentence.
what is oops
What do you mean by stack program? Get me an example stack program?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
Please tell me the oops concept with detailed answer
What is polymorphism what are the different types of polymorphism?
Name an advantage of linked list over array?
what is the difference between inter class and abstract class...?
which structured data type is not used in c++? 1.union 2.structure 3.string 4.boolean
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?