:: 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                      
Categories >> Software >> Programming Languages >> C++ >> STL


 STL interview questions  STL Interview Questions (93)
 OOPS interview questions  OOPS Interview Questions (563)
 C++ General interview questions  C++ General Interview Questions (461)
what's the difference between abstract class and concreate
class? what's the meaning of standard template library(STL)?
 Question Submitted By :: STL
I also faced this Question!!     Answer Posted By  
# 1
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 ?    69 Yes 4 No
A.srinivas Rao
# 2
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

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,
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 ?    40 Yes 6 No
# 3
An abstract class is the class that define the interface
without the necessity to implement all the member

The derived class (from base abstract class) that implement
all the missing functions
Is This Answer Correct ?    38 Yes 10 No
# 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
Is This Answer Correct ?    11 Yes 3 No
Siva Rama Krishna
# 5
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
# 6
An abstract class is the class that define the interface
without the necessity to implement all the member

The derived class (from base abstract class) that implement
all the missing functions
Is This Answer Correct ?    5 Yes 5 No

Other STL Interview Questions
  Question Asked @ Answers
What is Constructor Angel-Broking 14
Which data structure gives efficient search? A. B-tree B. binary tree C. array D. linked list Sun-Microsystems 21
Question 1)Read the data from one file and remove all the duplicated words and generate an output file containg only using words.Program should also print number of occurance of each words on standard output.(Program must be use STL and iostream object). Question 2)Write a program to convert the lower case contents of file to upper case using STL. Question 3)What is the output of this problem. int i=12; int &r =i; r+r/4; int +p =&r; int *p = &r; P+=r; return 1; Answer :a)12 b)17 c) 30 d)24 E)15 Question 4) #include #include #include void main() { char srcstr[30],desstr[30]; int i,len; clrscr(); cout<<"\nenter the string\n"; cin>>srcstr; len=strlen(srcstr); for(i=0;srcstr[i]!='\0';i++) { desstr[--len]=srcstr[i]; } desstr[i]='\0'; cout<<"\nreversed string is\n"; for(i=0;desstr[i]!='\0';i++) { cout< } getch(); } Answer : A) string output b)tuptuo gnirts c) string d)output Question 5) Class Test { static const Tk=LEN; int q; public: foo(intx =LEN):q(x){}; TGet Q() const { return q:} void call test Foo<long :9> foo(10); std::const<< foo.Getq(); Answer: 7,8,9,10,11 question 6) class A { int a; char b; }; class B:public A { char b; int a; }; What is the size? Answer a)5 bytes for class A and 5 bytes class B b)4 bytes for class A and 8 bytes class B. c).... d).... Bally-Technologies 2
write a c++ to define a class box with length,breadth and height as data member and input value(),printvalue() and volume() as member functions.   1
what is strcture i++ i ++i answer to this i=5 what is the out put   6
How to write a function that goes through an array of characters and eliminates any elements that are not letters (Legal letters can be either in an uppercase or a lowercase format.) The function removeNonLetters should return the new effective size of the array as the result.   2
Write a program in C/C++ to implement reader- writer problem Wipro 1
tell about sorted linked list   1
#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? Wipro 11
c# support late binding or early binding.   6
what is c++   2
what is a template? BITS 2
For more STL Interview Questions Click Here 

Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
Copyright 2013  All Rights Reserved.   ::