educative.io

Admin class - all work method should be part of a Service

Admin class seems bloated. All the functionality should be moved under service this is not an entity as such.

We can create an entity called as Admin which extends Person but the action on Admin related functionality should be moved out to AdminService.

Am I missing something ?


Type your question above this line.

Course: https://www.educative.io/collection/5668639101419520/5692201761767424
Lesson: https://www.educative.io/collection/page/5668639101419520/5692201761767424/5770234338213888

Hi @Prabhat_Jha
We are considering the services which you’re mentioning as a duties of admin. This is the requirement assumed by our system. There can be multiple ways of designing a system.