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


Please Help Members By Posting Answers For Below Questions

what are the different types of qualifier in java?

1836


What are the advantages of polymorphism?

573


Can we have inheritance without polymorphism?

606


What is coupling in oops?

591


What is abstraction and encapsulation?

565






Why is encapsulation used?

577


What is protected in oop?

598


Can bst contain duplicates?

664


What is the advantage of oop over procedural language?

623


What are the three main types of variables?

597


What does no cap mean?

590


Who invented oop?

647


Is oop better than procedural?

562


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1403


Can main method override?

580