Interface?

I've recently moved to C++ after doing some development in Objective - C, and I was wondering how and interface for a program is created, or if they aren't created at all.
Do you mean like a interface for a class or an interface like a GUI?
C++ has a slightly different view of Objects because of its static binding. You can't send a message without knowing where it's going. To send a message to a class, you must see it's definition to be sure that you're sending the right message in the right way. It's really just calling a function in the same way C does with a few tweaks.

Classes are declared with the class keyword, which is analagous to struct in C.

You can define an interface, but as far as the syntax goes, you use class with declarations observing certain conventions within the class.

Last edited on
Topic archived. No new replies allowed.