Search the web
Sign In
New User? Sign Up
parlezuml · Parlez UML Study Groups
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
To Jason Gorman--Interface Seperation   Message List  
Reply | Forward Message #137 of 346 |
Hi ,
i have gone through the tutorial you have publiched ,

I do have a doubt in the interface seperation tutorial, you have
given an example

in the customer class some clients need to know the id only and the
others need to only convert the customer class into XML, so you have
created two interface for IBusiness interface for ID and IXML for
getting the XML

So we have implemented the two in the customer class..


Ok,
I need to get the XML for the customer class


i did this

Customer objCustomer=new Customer();

((IXML)objCustomer.getXML());

what difference it make when i have a method like getXML() in
Customer Class

and Call directly objCustomer.getXML();


Do let me know iam using the correct call, or what advantage do we
have in interface seperation

Regards

Thomson













Mon Nov 6, 2006 7:18 am

saintthomson
Offline Offline
Send Email Send Email

Forward
Message #137 of 346 |
Expand Messages Author Sort by Date

Hi , i have gone through the tutorial you have publiched , I do have a doubt in the interface seperation tutorial, you have given an example in the customer...
saintthomson
Offline Send Email
Nov 6, 2006
7:22 am

... Hi Thomson That's a good question. Why would we bother to split Customer into two interfaces if we only endf up binding to Customer, which implements both...
jasongorman_uk
Online Now Send Email
Nov 6, 2006
10:27 am

Hi! I have not read the tutorial yet, but maybe it would make more sense if, instead of ((IXML)objCustomer.getXML()); you had read/written ...
Guillaume Bertrand
gui_bertrand
Offline Send Email
Nov 6, 2006
11:22 am

Thanks Guillaume. for pointing out that , i missed the paranthesis ... sense if, instead of ... have ... the ... have ... for ... we ... into two ... ...
saintthomson
Offline Send Email
Nov 6, 2006
6:30 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help