[Cs3] on interfaces
Mikhail Nesterenko
mikhail at cs.kent.edu
Fri Apr 6 12:05:29 EDT 2018
CS3 students,
This is regarding the term interface. C++ does not formally have
this term.
* there is an object oriented concept of a class interface (its public
functions). This is what Design Patterns textbook mentions (on page
13).
* there is a Java concept of interface class. In Java, it is used for
two reasons. First, this is Java equivalent of an abstract class
(class with pure virtual functions). Also, it is used to simulate
multiple inheritance. C++ supports multiple inheritance directly.
Hence, C++ does not need this concept.
I cleaned up the "objectOriented" (that introduces template method
design pattern) set of slides to remove the term interface.
Thanks,
--
Mikhail
More information about the cs3
mailing list