Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface ChatService
- {
- public void logout();
- }
- class YahooChat implements ChatService
- {
- public void logout()
- {
- //implementation here...
- }
- ....
- }
- class MsnChat implements ChatService
- {
- public void logout()
- {
- //implementation here
- }
- }
- class SomeClientClass
- {
- private ChatService chatservice;
- ...
- void logout()
- {
- chatservice.logout();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement