what is the equvalent of interface(java) in c++?
Printable View
what is the equvalent of interface(java) in c++?
A struct or class with only public pure virtual functions.
Should not (not sure if it can) contain constants though, they must be declared on a global level.
It also depends whether you use a normal class library or hierarchy or COM.