Static Methods
This lesson explains what static methods are and how they are defined using an example.
We'll cover the following
What are Static Methods?
Methods that we define inside the class get assigned to the prototype object of the class and belong to all the objects instances that get created from that class.
Let’s consider the example of the class Student
:
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy