You are here:

C++/abstract classes

Advertisement


Question
Hi sir!Can you give where c++ abstract class concept will be benifited to software developer?
I mean in what situations he can use abstract class concept.

Answer
An abstract C++ class is an abstract type. "Abstract types are useful in that they can be used to define and enforce a protocol; a set of operations which all objects that implement the protocol must support."

See http://en.wikibooks.org/wiki/C%2B%2B_Programming/Classes/Abstract_Classes
And http://devjourney.com/blog/code-contracts-part-5-abstract-types-and-interfaces/

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


vijayan

Expertise

my primary areas of interest are generic and template metaprogramming, STL, algorithms, design patterns and c++11. i would not answer questions about gui and web programming.

Experience

about 15 years or so

Education/Credentials
post graduate engineer

©2016 About.com. All rights reserved.