The difference between a customer class and a service class

What are the client classes and the service class in a .net application and what is the difference between them?

+4
source share
2 answers

Both clients and services are super-overloaded terms , so they can mean many different things, depending on the context.

However, as a rule, these terms can be used to describe the relationship between the caller and the callee .

For any two interacting objects, the object that invokes the method call is the client , and the called object is the service .

Depending on the context, an object can be either a client or a service, since the call stack is usually deeper than two calls.

+4
source

you buy a car from Yamaha, then you need regular service for your car, so you will be a customer (customer class) Yamaha and Yamaha (service class) will be your service provider for you.

+1
source

All Articles