educative.io

What does this means "Establish an interface of each object."

Establish an interface of each object.: what this statement means from perspective of OO analysis and design

Can someone please elaborate on this (preferable with an example)

“Establishing an interface of each object” means defining how each object will be seen by other objects. In other words, defining its public functions. As other objects interact with an object through its public functions (so public functions are the interface of an object).

1 Like