What is purpose of abstract class?



What is purpose of abstract class?..

Answer / Bhavna Tyagi

Abstract classes in C++ are used to provide a base structure for inheritance. They cannot be instantiated directly but are intended to be inherited and specialized by other classes, ensuring that objects derived from them meet certain requirements.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Explain about vectors in c ++?

1 Answers  


What is the purpose of the "delete" operator?

1 Answers  


write the code that display the format just like 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1 6 5 4 3 2 1

5 Answers  


How many lines of code you have written for a single program?

4 Answers   BoA,


On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?

1 Answers  


What are c++ tokens?

1 Answers  


What is #include iostream h in c++?

1 Answers  


What is an orthogonal base class in c++?

1 Answers  


Explain the difference between abstract class and interface in c++?

1 Answers  


What is conditions when using boolean operators?

1 Answers  


Problem 6: Area of a trapezoid can be calculated by the following formula: A=(b1 b2)×h2 where b1 and b2 are the parallel sides or the bases and h is length of height Write a C code of this program

0 Answers   Maxobiz,


What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required

1 Answers  


Categories