Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

When to pass a class and when to pass an interface

Status
Not open for further replies.

tshad

Programmer
Jul 15, 2004
386
US
The is always been a little confusing. I understand how they work but not always sure when to use one over another.

For example:


In a sample project I was playing with on MVP, controls are passed by interface to the presenter. But the presenter object is passed directly to the control.

Why would that be?

Why not just pass the control to the presenter?

Or have an interface for the presenter and pass that to the object?

Thanks,

Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top