There are a couple ways to look at abstraction. One is ignoring a certain level of detail so you can focus on another level. For example if my system deals with people, I might have a Person object, aka a Person abstraction. We can talk about Person without having to describe all the name, birthdate and address fields every time I mention it.
Another side of abstraction is a truly abstract class or interface. I might have an abstract Person class with concrete classes like Manager and Employee. Have you run into any examples like that?
Does that help?
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Joined: Sep 05, 2005
can u plz give me a programme code where abstraction is involved?? thank u
Joined: Jan 29, 2003
It's as simple as something like:
Date is a fairly "abstract" concept when you consider the details: month, day, year, hours, minutes, seconds, millis, day of week, leap year, holidays and so on. You can use the word "date" in a conversation or the class Date in code without getting hung up on all those details.
Does that kind of explanation fit the question? If this is for homework we might have to figure out exactly what the question was supposed to mean.