what's the difference between abstract class and concreate
class? what's the meaning of standard template library(STL)?
Answer Posted / zubeir
First of all, we should understand what is the meaning
of 'abstract' in terms of software. It's the same meaning
as in English, that is, the entities (objects) which do not
exist in the real world are abstract entities. For example,
Dog, Cat, Bear, Deer are all animals that exist but animal
is also an entity which is just a concept and there is no
existance.
So we can define an abstract class for 'Animal'. We can
derive any number of real world animal classes from the
abstract class 'Animal' like Tiger, Lion, Donkey, etc.
Obviously, we can understand now why we cannot create
objects for abstract classes. The answer is we must not,
right?
Because the Animal class has no existance in real world. So
we cannot create a real world entity (nothing but an
object). That is the very reason this concept is followed.
The derived classes that we've seen above are concrete
classes since they are real world objects and have definite
properties and operations on them.
| Is This Answer Correct ? | 43 Yes | 7 No |
Post New Answer View All Answers
a program using one dimensional array that searches a number if it is found on the list of given input numbers given by the user and locate its exact location in the list.
Is stl part of c++ standard?
How stl is different from the c++ standard library?
What are the various types of stl containers?
draw a flowchart that accepts two numbers and checks if the first is divisible by the second.
What are the symptoms of stl?
Is string part of stl?
Is there any error below, its a code to delete all entires from a map #include
What are the different types of stl containers?
What is a stl vector?
Who wrote stl?
What is a standard template library (stl)?
Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.
Define stl.
To modify an, existing worksheet. What steps are involved for: 1. Inserting and deleting rows and columns. 2. Printing cell formulas 3Jld displayed values 3. Using the page setup command