what is the need of abstraction? what is abstraction?what
is the abstraction for stack?
Answer Posted / mms zubeir
As I answered one of the questions here, the abstraction is
nothing but declaration of a concept in software terms
which does not exist in real-world.
For example, mango, drumstick, brinjal, potato are all
vegetables. But "Vegetable" is just a concept and it has no
real-world existance.
To represent these kind of concept in software terms, we
need abstration.
On the other hand, the mango, brinjal, ... are all have
concrete implementations since they have certain properties
and can do some operations on them in the real world.
I couldn't get the third question "abstraction for stack",
but I try to answer with what I understood.
Normally, stack's operations include push, pop, top, size,
empty e.t.c. If we define an interface with these, it ll be
an abstraction for stack. Let me know if it doesn't answer
your question.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is abstraction with example?
What is the difference between abstraction and polymorphism?
How do you use inheritance in unity?
What is polymorphism what is it for and how is it used?
How to use CMutex, CSemaphore in VC++ MFC
What is the difference between encapsulation and polymorphism?
when to use 'mutable' keyword and when to use 'const cast' in c++
What are the benefits of interface?
Which type does string inherit from?
What is inheritance and how many types of inheritance?
What is methods in oop?
Why is object oriented programming so hard?
Prepare me a program for the animation of train
What are the 4 main oop principles?
What is the purpose of enum?