What is an abstract class?

Answers were Sorted based on User's Feedback



What is an abstract class?..

Answer / btech

Class that has at least one pure virtual function
Class that Can not be instantiated


Is This Answer Correct ?    7 Yes 0 No

What is an abstract class?..

Answer / naveen kumar

Abstract classes are classes that contain one or more abstract methods. Abstract method is a method that is declared, but contains no implementation. Abstract classes may not be instantiated, and require subclasses to provide implementations for the abstract methods.

Is This Answer Correct ?    3 Yes 0 No

What is an abstract class?..

Answer / vikas

Note that even if the destuctor is pure virtual, the class
would become abstract.

Vikas
http://www.cppquestions.com/

Is This Answer Correct ?    2 Yes 1 No

What is an abstract class?..

Answer / hrpynux@gmail.com

An abstract class is a template definition of methods and variables of a class (category of objects) that contains one or more abstracted methods. ... Declaring a class as abstract means that it cannot be directly instantiated, which means that an object cannot be created from it.

Is This Answer Correct ?    0 Yes 0 No

What is an abstract class?..

Answer / padmas

Abstract class is the class designed for inheritance, for which no object will be created in the programming, but objects created for those classes that are inherit functions, methods from objects of classes those inherited. For example class A is a abstract class ,class B inherits A, objects of class B can be created but not A. These objects use the methods of A also B.

Is This Answer Correct ?    0 Yes 0 No

What is an abstract class?..

Answer / sreenathroyal

hiding the data

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C++ Interview Questions

How to generate random numbers in C++ with a range?

1 Answers  


What does malloc return in C and C++?

1 Answers   Alter,


Define an Abstract class in C++?

1 Answers  


Tell us the size of a float variable.

1 Answers   Accenture,


How many times will this loop execute? Explain your answer.

1 Answers  


What is a virtual function in C++?

1 Answers   C DAC,


What are the fundamental features of an object-oriented language?

1 Answers   Accenture,


What is a memory leak in C++?

1 Answers   Agilent,


What are the advantages and disadvantages of B-star trees over Binary trees?

1 Answers  


How to input string in C++

1 Answers  


C++ supports multiple inheritance. What is the “diamond problem” that can occur with multiple inheritance? Give an example.

1 Answers  


What does it mean to declare a member function as static in C++?

1 Answers   Amazon,


Categories