Image for post
Image for post
Photo by Alex Kotliarskyi on Unsplash

In this article, we will explore the different methods used in a class and understand what role each method plays. In a class, we have different kinds of methods namely - class methods, instance methods, and static methods. While they are very simple to understand, we often tend to forget the use-case scenarios these different types of methods try to solve. I try to implement these different methods taking a simple use-case scenario which might try to improve your understanding of them. The use-case problem is as follows: I have an employer which has different departments and employee types. …

Srinaveen Desu

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store