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 static modifier?
What is inheritance in simple words?
What is polymorphism what are the different types of polymorphism?
what are the ways in which a constructors can be called?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
What is the difference between inheritance and polymorphism?
What do you mean by abstraction?
What do you mean by Encapsulation?
What is a class oop?
Why do we use class in oops?
How is polymorphism achieved?
what type of questions
What are the 4 pillars of oop?
What is abstraction and encapsulation?
Can a destructor be called directly?