Skip to Content
0
Former Member
Jan 02, 2008 at 01:34 PM

Interfaces in Classes -- seems pointless since components are all PUBLIC

160 Views

As all components of a class moved to an Interface are all made PUBLIC is there actually ANY point in ever using Interfaces.

Since a good implementation of a Class will have most of its methods and attributes defined as PRIVATE or PROTECTED there really IMO seems no point in using the whole Interface concept or have I actually missed something here.

I was trying to tidy up several classes by using a common Interface --but I really want most of the methods and attributes to be PRIVATE with a small PUBLIC section available to "the Outside".

Cheers

jimbo