learn java
The moose likes Beginning Java and the fly likes public interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "public interface" Watch "public interface" New topic

public interface

sonia jaswal
Ranch Hand

Joined: Jun 01, 2007
Posts: 42
what is a public interface???
abhishek pendkay
Ranch Hand

Joined: Jan 01, 2007
Posts: 184
Hi Sonia,
the word interface is overloaded in java ie it can mean two things, an interface that you can implement, so in that case a public interface is just an interface declared public...like public interface MyInterface

but the word interface is also used to designate the public methods of your class or those methods of your class that other classes should know about.... so in that case public interface is a collection of public methods that your class exposes to other classes like the getter and setter methods....

hope this clears your doubts

The significant problems we face cannot be solved by the same level of thinking which created them – Einstein
SCJP 1.5, SCWCD, SCBCD in the making
sonia jaswal
Ranch Hand

Joined: Jun 01, 2007
Posts: 42
thank you...
Have you tried LearnNowOnline? http://www.learnnowonline.com/
subject: public interface