Checkout
Start free trial
Take Naologic for a spin today, no credit card needed and no obligations.
Start free trial
Question

Abstract Data Type - What is an example of an abstract data type in C++?

Answer

In C++, the 'Shape' class is an example of an abstract class. It provides a common interface for various geometric shapes but does not implement the 'draw' method, which needs to be defined by its subclasses.