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

Memory Layout of C Programs
A typical memory representation of C program consists of following sections. Text Segment: A text segment, also known as a code segment or simply as text, is one of the sections of a program in an object...

Static and dynamic libraries
A library is a package of code that is meant to be reused by many programs. A static library (also known as an archive) consists of routines that are compiled and linked directly into your program. When...

Upcasting and Downcasting
Converting a derived-class reference or pointer to a base-class reference or pointer is called upcasting. It is always allowed for public inheritance without the need for an explicit type cast. The downcasting,...

Looking for C++ Language Classes?

Learn from Best Tutors on UrbanPro.

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
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