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
Why do we use oop?
write a program that takes input in digits and display the result in words from 1 to 1000
Get me an image implementation program.
Can we create object of abstract class?
What is static modifier?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
class type to basic type conversion
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
What is a class in oop?
What is the purpose of enum?
What is the real time example of inheritance?
Can you inherit a private class?
what type of questions
any one please tell me the purpose of operator overloading