Explain encapsulation and data hiding, C/C++ Programming

Assignment Help:

Encapsulation and Data Hiding

The property of being a self-contained unit is known as encapsulation. The idea that the encapsulated unit can be used without knowing how it works is known as data hiding.

Encapsulation is the principle by which related contents of a system are being together. It minimizes traffic among different parts of the work and it divides certain specific requirements from other parts of specification, which use those requirements.

The significant advantage of using encapsulation is that it helps minimize rework when developing a new system. The part of the work, which is prone to change, can be encapsulated together. Thus any changes can be made without affecting the overall system and as changes can be easily incorporated.

As noted before, when an engineer requires adding resistor to the device she is creating, she doesn't typically build a new one from the scratch. She walks over to a bin of resistors, examines the bin of resistors, examines the colored bands that show the properties, and picks the one she requires. The resistor is a "black box" as far as the engineer is concerned - that is, she doesn't care how it does its work as long as it conforms to her specifications.

 


Related Discussions:- Explain encapsulation and data hiding

Example for register storage class - computer programming, Example for Regi...

Example for Register Storage Class - computer programming? main() { register int i; for (i=0; i { ............... ............... } } /* block exit will free the register

Prepare an application in c# or c++, Prepare an Application in C# or C++ ...

Prepare an Application in C# or C++ Project Description: We are seeking someone who can write a program in C# or C++. The idea is to prepare the program using a Cross Plat

Padovan string, write a C program for padovan string for a natural number ...

write a C program for padovan string for a natural number   program 1 : package test.padovanstring; public class PadovanString {     public int stringOccurrences(int n,

Program to calculate average of marks, Program for calculate average of tot...

Program for calculate average of total marks: #include using namespace std; void print(int marks_arr[],int cnt) { int ind[cnt]; int i=0; int j=0; int k=0;

Explain high-order and low-order bytes., Explain high-order and low-order b...

Explain high-order and low-order bytes. - Numbers are written from left to right in decreasing order of significance. In the same way, bits in a byte of computer memory can be

Expression in c++, expression and its types with example programs

expression and its types with example programs

Program to spider''s path display to the screen, Spider webs have two types...

Spider webs have two types of silk, sticky silk and strength silk, spiders do not move on the sticky silken threads only on the strength threads. Assume one type of spider creates

Purchasing code signing certificate, Purchasing Code Signing Certificate ...

Purchasing Code Signing Certificate I want to purchase a Code Signing Certificate in good standing from someone in order to sign my .EXE programs with. Please be aware I do n

String storage within c, The concept of a string in C is difficult, because...

The concept of a string in C is difficult, because a string is a collection of characters stored in memory terminated by a NULL string i.e. \0. Let us consider the string Hello. Th

Assignment, manupulates operator precidence

manupulates operator precidence

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd