There is some kind of object-oriented engineering principle that formulates something like "a class, should only know about the class contracts that it takes as arguments, or any internal ones that it uses."
Counter example in C ++:
Foo::bar( Baz* baz)
{
baz()->blargh()->pants()->soil();
}
Does this principle have a name? In addition, it would be nice to see the actual principle, not my paraphrase above.
source
share