UrbanPro
true

Learn C++ Language from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

What is Abstraction?

Vijay Kumar
10/05/2017 0 0

In theortical terms, abstraction is:

  1. Hiding details from the outer world.
  2. Providing only essential details to outer world.

C++ provide ways to hide details using access specifiers: public, protected and private.

public access specifier means it is accessible to everyone.

private access specifier means that memebers can only be accessed by other members of the class.

protected is similar to private that is not accessible outside the class but can be accessed by sub classes.

Now most of the people don't understand or have knowledge from whom we are hiding details and how we do it.

We have heard about libraries LIB, DLLs. Libraries are compiled code which can be linked with your applications or programs. Thhat can be created by you or procured from some third party. What generally a library have? It have one heder file which contains interface or functions prototypes and a LIB or DLL. header file is required to tell compiler that used function is defined there at some place. LIB or DLL have the definition or implementation of those functions, which can be linked statically or dynamically. 

So basically you have abstracted the implementation detail from other developer or other organization. Access specifier are the means to achieve it.

0 Dislike
Follow 0

Please Enter a comment

Submit

Other Lessons for You

Why we need to learn Programming languages?
Language is medium for communication. If two parties like to communicate or exchange the thoughts they must know a language. Language should be understandable by both the Parties. For example A wants to...

Class and Objects C++
CLASS AND OBJECT IN C++ WITH EXAMPLE FOUNDATION Lets define a variable x of integer type and give it a value 12. How will you do it. You will simply write int x=12; This statement can also be written...

Compiler vs Interpreter
Compiler Interpreter Convert all the code into binary format and execute. Convert one statement at a time and execute, then Convert next statement and execute. After conversion, source...

Advantages of C++ Language
Advantages of C++ - C++ is a profoundly convenient dialect and is frequently the dialect of decision for multi-gadget, multi-stage application advancement. - C++ is a protest situated programming dialect...

C++ Program-Factorial
//Header files #include<iostream.h>#include<conio.h> //Main function void main(){ int num,i; long factorial=1; //Function for clearing screen clrscr(); cout<< "Enter a number:";...
S
X

Looking for C++ Language Classes?

The best tutors for C++ Language Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn C++ Language with the Best Tutors

The best Tutors for C++ Language Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more