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
totoo po ba ang manga aliens!
how to use C++?
Name the different types of stl containers.
What is stl stack?
What do stl stand for?
How does an stl file work?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
Is there any error below, its a code to delete all entires from a map #include
What is a standard template library (stl)? What are the various types of stl containers?
In what scenario does the Logical file and Physical file being used?
How do you convert stl to steps?
What is meant by stl in c++?
What is stl in oop?
What is a stl vector?
What are the symptoms of stl?