Infolink

 

Search This Blog

Showing posts with label Interface class. Show all posts
Showing posts with label Interface class. Show all posts

Nov 16, 2012

Interface class

Sometimes it is simple and helpful to define a class that does nothing but defines a standardised interface that can be used by other classes to make sure the implementation follows a standard set of input and output paramaters. Also this approach results in faster code runs and more maintainable code.

The interface class can only be approached by using a pointer to the virtual table that exposes the methods in the interface. Interface does not come by itself, it usually comes with an inherited class that implements the exposed method in the interface. Such a class that implements the interface exposed methods is often called a co-class.
Related Posts Plugin for WordPress, Blogger...