接口编程,或者称为Interface Programming。
So what is interface programming all about?
It is all about actions, or functions, or input/output/parameter.
steps:
  1. a function name
  2. input
    at least one input
  3. output
    none or more

the action can be applied in more dimensions. Take a look at this example,

the 2nd use of table

it creates an interface IContLogic, the member function checkQualificationToContinue has 2*3=6 instance, in 2 dimensions.

This is just a simple example, only 1 interface and 1 member function. It can be more complex, evolving to be more interfaces and more member functions.

Advertisements