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
given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy
What are two types of polymorphism?
How do you achieve runtime polymorphism?
write a program to find 2^n+1 ?
What is multilevel inheritance in oop?
How Do you Code Composition and Aggregation in C++ ?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What is super in oop?
What is ambiguity in inheritance?
write string class as your own class in java without using any built-in function
What are the 4 main oop principles?
How do you use inheritance in unity?
what is different between oops and c++
How do you define a class in oop?
Advantage and disadvantage of routing in telecom sector