Marcel wrote:
Can someone explain me what an interface in C++ is.
Is that just about the data encapsulating capability of C++ classes?
Marcel
There are two general meanings. The first is that the interface is the
set of public functions a class makes available to all users, or, in
the case of derived classes, the interface consists of the same public
functions and protected functions in the base class. These FAQs might
help answer some more questions:
http://www.parashift.com/c++-faq-lit...d-objects.html
The second meaning is that interface can refer to using an abstract
base class. See this FAQ and those following:
http://www.parashift.com/c++-faq-lit....html#faq-22.2
Cheers! --M