|
-
Sep 21st, 2011, 09:11 PM
#1
Thread Starter
Frenzied Member
need help with object oriented programming
I'm having a hard time trying to code my application using OOP. Basically, I have two webservices that i'd like to use OOP. As an example, I have one soap webservice that returns Name and Age. I also have an xml webservice that returns EyeColor and HairColor. Now, I figured I'd create a class called WebServiceClass, then I'd create a SoapWebServiceClass (that inherits from WebServiceClass) and a XmlWebServiceClass (that inherits from WebServiceClass). But the problem is, I don't know what would be the members (properties and methods) inside WebServiceClass. I figure there would be an abstract SendRequest() method, which I would implement in the SoapWebSErviceClass and XmlWebServiceClass since each would have a different way of sending a request. Any ideas on how to do OOP on this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|