What is abstrac class?where is it use?

Answers were Sorted based on User's Feedback



What is abstrac class?where is it use?..

Answer / gp

Class which cannot be initiated is an abstract class.
You can make a class abstract by declaring a pure virtual method inside the class. For example:

class base
{
void func()=0;
};

void main()
{
base b;
}

Now you cannot instantiate base class.
The class which inherits this base class will also become abstract unless you define a body of the func() method in inherited class.

Is This Answer Correct ?    0 Yes 0 No

What is abstrac class?where is it use?..

Answer / vijaya lakshmi

abstrac class always said to algorithm. Bacause you
ara writing program before explain a program in algorithm

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More OOPS Interview Questions

Get me a number puzzle game-program

0 Answers  


What do you mean by variable?

0 Answers  


Whats is abstraction in oops?

0 Answers  


What is the difference between static polymorphism and dynamic polymorphism?

0 Answers  


What is polymorphism what is it for and how is it used?

0 Answers  






What is data binding in oops?

0 Answers  


Can we have inheritance without polymorphism?

0 Answers  


Which language is not a true object oriented programming language?

0 Answers  


When is it necessary to use member-wise initialization list in C++?

2 Answers   Adobe,


i hav very low percentage in 12th n BSCwhich is around 50.......coz it was just imposed on me 2 b a science graduate,nw m doin MCA n hav aggregate 74% ....what shud i answer if company's HR ask me about dis much low previous percentage??????

3 Answers   Infosys,


What are main features of oop?

0 Answers  


What is destructor in oop?

0 Answers  


Categories