Original Post
I know in Java you can do public interface myInterface { . . . } Two questions. Why not just make an abstract class? Is there a such thing in C++?
Quote:
Original post by Anonymous Poster
Answer two: The way to do this in C++ is to make a base class with (preferably) only abstract methods, and then use multiple inheritance (which does not exist in Java).
Quote:
Original post by bballmitch Quote:
Original post by Anonymous Poster
Answer two: The way to do this in C++ is to make a base class with (preferably) only abstract methods, and then use multiple inheritance (which does not exist in Java).
But I know there is a keyword in C++ interface . What does that do? I can't figure it out.
Quote:
Original post by nsto119
There is no interface keyword in C++. There might be in C++/CLI, but not in the "real" C++.
Quote:
Original post by Sneftel
It's not a typedef (you can't typedef keywords), but a #define.
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more