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

Why do we use class in oops?

0 Answers  


How to reverse a sentence in c program ex: ram is a good boy answer: boy good a is ram

0 Answers   IBM,


Can enum be null?

0 Answers  


what is ltti

1 Answers   Unisys,


Why and when is a virtual destructor needed?

5 Answers  






why function overloading is not called as pure polymorphism?

2 Answers  


What is polymorphism explain its types?

0 Answers  


What is difference between pop and oop?

0 Answers  


What is the significance of classes in oop?

0 Answers  


what is difference b/w object based and object oriented programming language?

18 Answers   Chaitanya, College School Exams Tests, Educomp, IBM, Infosys, Telko,


There are 2 classes defined as below public class A { class B b; } public class B { class A a; } compiler gives error. How to fix it?

3 Answers   Microsoft,


WRITE A SIMPLE C++ PROGRAM TO SWAP TWO NOS WITHOUT USING TEMP

2 Answers  


Categories