1. NADAR SARASWATHI COLLEGE OF ARTS AND
SCIENCE
DEPARTMENT OF COMPUTER SCIENCE
CRYPTOGRAPHY
Encapsulation security payroll
internet key exchange
presented by
M.Shakthi msc cs
2. ENCAPSULATION SECURITY
In software systems, encapsulation refers to the bundling of data with the
mechanisms or methods that operate on the data. It may also refer to the limiting of
direct access to some of that data, such as an object's components.
In general, encapsulation is a process of wrapping similar code in one place. In
C++, we can bundle data members and functions that operate together inside a
single class. For example, class Rectangle { public: int length; int breadth; int
getArea() { return length * breadth; } };
3. 3 BASIC TECHNIQUES:
• There are three basic techniques to encapsulate data in Object
Programming.
•
Types of Encapsulation in OOPs
• Member Variable Encapsulation. ...
• Function Encapsulation. ...
• Class Encapsulation.
4. Advantages of Encapsulation
Encapsulation protects an object from unwanted access by clients.
Encapsulation allows access to a level without revealing the complex details
below that level. It reduces human errors. Simplifies the maintenance of the
application.
5. Disadvantages of Encapsulation
Code Size:
The length of the code increases drastically in the case of encapsulation
as we need to provide all the methods with the specifiers. More Instructions:
As the size of the code increases, therefore, you need to provide additional
instructions for every method.