ALLInterview.com :: Home Page KalAajKal.com
 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++  >>  OOPS
 
 


 

 
 STL interview questions  STL Interview Questions
 OOPS interview questions  OOPS Interview Questions
 C++ General interview questions  C++ General Interview Questions
Question
what is abstract class ?
when is used in real time ?
give a exp

 Question Submitted By :: Ashis
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is abstract class ? when is used in real time ? give a exp
Answer
# 1
An Abstract Class is one in which the member function(s) at 
the Base(Parent) Class are left undefined, but declared. 
It's upto the Derived(child(ren)) Classes to Implement the 
Functions declared in Base...


Ex:

Let us assume... As a father(Base Class), he has some Land 
(Member Function), and he has not done any cultivation
(implementation) in it... As his Child(Derived Class), he 
takes the Land(Member Function) from the Father(Base) and 
does Agriculture(implementing the M.F. of Parent Class) in  
the Child...

Concept of Inheritance...

Is it good enough!!!
 
Is This Answer Correct ?    1 Yes 0 No
Manjunathtek
[Teknoturf Info Services Pvt. Ltd]
 
  Re: what is abstract class ? when is used in real time ? give a exp
Answer
# 2
First of all, a class is a software entity to represent a 
concept. If the entity exists in real world, then, we can 
create object of the class which makes sense. This is 
called as a concrete class.

For example, Lion, Dog, Car, Employee, etc.

An abstract class is a class which represents a concept, 
the object of which is not available in the real world. 
This is merely a concept alone. There are object in the 
real world which resembles this concept.

For example, Animal, Vehicle, Person, etc.
 
Is This Answer Correct ?    3 Yes 0 No
Mms Zubeir
 
 
 

 
 
 
Other OOPS Interview Questions
 
  Question Asked @ Answers
 
What is an orthogonal base class?  1
What are the advantages of inheritance?  2
Which is the only operator in C++ which can be overloaded but NOT inherited?  3
What is a mixin class?  3
What are the main differences between procedure oriented languages and object oriented languages?  4
When is it necessary to use member-wise initialization list in C++?  1
What is the difference between pass by reference and pass by value? TCS6
Given two strings like x=?hello? and y=?open?, remove any character from string x which is also used in string y, thus making the result x=?hll?. IBM8
When is an object created and what is its lifetime? IBM1
sir i want to know which posting to apply since i am BE CSE.. also want to know what are the rounds there for my interview...Expecting for ur valuable answer....  1
what is the basic concept of inheritance?  4
what is meant by files? Infosys2
What are generic functions and generic classes?  2
Does c++ support multilevel and multiple inheritance? Wipro5
How is exception handling carried out in c++?  1
why c++ is called OOPS? waht is inherutance? what is compiler?  2
what is virtual function? Infosys11
what is the difference between <stdio.h>and "stdio.h"?  2
In c++ there is only virtual destructors, no constructors. Why?  2
can you explain how to use JavaBean in Project Infosys1
 
For more OOPS 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 © 2007  ALLInterview.com.  All Rights Reserved.

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