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
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
sir please send me bpcl previous question papers
What is a stl vector?
Can we use stl in coding interviews?
In what scenario does the Logical file and Physical file being used?
Do you like to Submit Questions in Bulk under Same Category?? Then use our Bulk ListerDo you like to Submit Questions in Bulk under Same Category?? Then use our Bulk Lister
How do you convert stl to steps?
i wanted to know about questions about c,c++ , which is required for placements.... im a fresher
please visit this site you'll find my question this is my homework please answer it if you can http://easyscience.org/ib/lofiversion/index.php/t36168.html
What is stl stand for?
Is string part of stl?
Name the different types of stl containers.
Is stl open source?
how to use C++?
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.