Why to have service when we can create classes,interfaces and can use the property inheritance?

Recommended Answers

...
that's about the same as asking: 'why having applications while we have classes, interfaces, ....'
a service can be seen as a group of classes/interfaces/... bundled together to perform certain tasks and provide certain functionalities that can be used by an unlimited amount of applications.

for instance:

google's gmail …

Jump to Post

Hi Amrita.
I don't know why jwenting wrote what he did - but whatever he wrote is his personal opinion and doesn't necessarily represent DaniWeb official policy.

Of course it's OK for you to post your questions here.

If that was a question you were asked for "homework", then our …

Jump to Post

All 5 Replies

...
that's about the same as asking: 'why having applications while we have classes, interfaces, ....'
a service can be seen as a group of classes/interfaces/... bundled together to perform certain tasks and provide certain functionalities that can be used by an unlimited amount of applications.

for instance:

google's gmail is a service. those who have an account, are the 'applications' using it.

because your teacher tells you to and you'll fail your homework assignment if you don't.

That's all the reason you need.

I was not asking for any code. Cant we post our query here?

Hi Amrita.
I don't know why jwenting wrote what he did - but whatever he wrote is his personal opinion and doesn't necessarily represent DaniWeb official policy.

Of course it's OK for you to post your questions here.

If that was a question you were asked for "homework", then our rules say you should show some effort first, but if it's just general curiosity, or a desire to know more about OO and Java, then even that doesn't apply.
Hopefully stultuske has answered your question, but if you need any further development of the answer please ask.
J

you can post questions, but your "question" indicates you've not done any work of your own to find your own answers.
It's also stereotypical of homework kiddos, not doing any of your own research, not putting in any effort, and dumping their homework piecemeal, poorly reworded to make it seem like it's not copied verbatim from some book.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.