Explanation
We have implemented the Student class, which has two private properties – __name and __rollNumber – that are initialized in the set methods.
In line 6, we implemented setName(name), a method that sets the __name property.
In line 9, we implemented getName(), a method that returns the __name property.
In line 12, we implemented setRollNumber(RollNumber), a method that sets the __rollNumber property.
In line 15, we implemented getRollNumber(), a method that returns the __rollNumber property.