ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
   
 
Categories  >>  Software  >>  Programming Languages  >>  C++  >>  STL
 
 


 

 
 STL interview questions  STL Interview Questions
 OOPS interview questions  OOPS Interview Questions
 C++ General interview questions  C++ General Interview Questions
Question
what's the difference between abstract class and concreate
class? what's the meaning of standard template library(STL)?
 Question Submitted By :: Franz
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what's the difference between abstract class and concreate class? what's the meaning of standard template library(STL)?
Answer
# 1
An abstract class is the class that define the interface
without the necessity to implement all the member
functions.

The derived class (from base abstract class) that implement
all the missing functions
 
Is This Answer Correct ?    37 Yes 9 No
Hkouki
 
  Re: what's the difference between abstract class and concreate class? what's the meaning of standard template library(STL)?
Answer
# 2
An abstract class is a class which contains atleast one
abstract method(i.e., an abstract method is one which has
only definition not implementation,which is done in some
other class.
We cannot create an object for Abstract class.
A class is said to be a concrete class if and only if it
contains fully defined methods.Defined methods are also
known has "concrete methods " or "Implemented methods".
We can instantiate an object for concrete class.
 
Is This Answer Correct ?    62 Yes 4 No
A.srinivas Rao
 
 
 
  Re: what's the difference between abstract class and concreate class? what's the meaning of standard template library(STL)?
Answer
# 3
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 ?    39 Yes 6 No
Zubeir
 
  Re: what's the difference between abstract class and concreate class? what's the meaning of standard template library(STL)?
Answer
# 4
the abstract method we can't create object,only create from
derived classes only that means which sub class have no
abstract method.then by using that object only call the
methods.
 
Is This Answer Correct ?    11 Yes 3 No
Siva Rama Krishna
 
  Re: what's the difference between abstract class and concreate class? what's the meaning of standard template library(STL)?
Answer
# 5
An abstract class is the class that define the interface
without the necessity to implement all the member
functions.

The derived class (from base abstract class) that implement
all the missing functions
 
Is This Answer Correct ?    5 Yes 5 No
Bansari
 
  Re: what's the difference between abstract class and concreate class? what's the meaning of standard template library(STL)?
Answer
# 6
An Abstract class is cannot be instantiated.means cannot
make object of this class.It has contains one or more
methods ..but it no implement..

interfaces are same as abstract classes only difference is we
an only define method definition and no implementation.
 
Is This Answer Correct ?    4 Yes 1 No
Jijo O R
 

 
 
 
Other STL Interview Questions
 
  Question Asked @ Answers
 
In what cases using of a 'template' is a better approach then using of a 'base class'? Lucent6
Write a program in C++ to concatenate two strings into third string using pointers  4
give me the defination of inheritance? Infosys5
What is 2*2?  6
why we are using the fork command?.. how it works?  1
What is Template Specialization? Lucent1
method overloading means what? CTS2
Find the error in the following program struct point {struct point *next; int data; } x; main() {int...data; } x; main() {int i; for(x=p;x!=0;) x=x->next,x++; freelist(x); } freelist(x) {free(x); return } Sun-Microsystems1
#define CUBE(x) (x*x*x) main() { int a,b=3; a=cube(b++); printf("%d %d",a,b); } What should be the value of a and b? My calc a=4 but syst a=6 how pls tell me if you know it? Wipro10
What is Object Oriental Progam  2
What is the Difference between CArray and CList? Siemens1
What is C++ could you enplane me please?  1
 
For more STL Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2012  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com