What is the proper use or definition of abstraction in object-oriented programming?
-
From: I'd like to point out that using objects and inheritance to represent real-world things is usually not a good idea. Many will disagree with this, but then again, many are not as good programmers as they think they are. I bring this up because it sounds like you are using a textbook definition of "the OOP principle of abstraction", and many textbooks give a hopelessly bad impression of what OOP abstractions are used for in practice.
-
Answer:
"Abstraction is the elimination of the irrelevant and the amplification of the essential" Data Abstraction - eg: primitive types, structure, files Control Abstraction - eg: functions, threads, process, control constructs Object Abstraction - eg: Data and its associated control/behavior I suggest to go through the paper : http://dl.acm.org/citation.cfm?id=243441 by Antero Taivalsaari to appreciate the concept of abstraction. An image from the same paper to signify the concept of abstraction:
Prathab Kali at Quora Visit the source
Related Q & A:
- What's the proper structure of an HTML5 page that briefly lists other articles?Best solution by Webmasters
- Is Java fully object-oriented?Best solution by Stack Overflow
- What are the object-oriented features of Visual Basic.NET?Best solution by msdn.microsoft.com
- How to Convert a Procedural Programming into Object-Oriented Programming?Best solution by Stack Overflow
- What is the proper way to do an abdominal crunch?Best solution by exercise.about.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.