Getters and setters are methods that are behaved like properties. it means they have function structure but when used, they are used same as properties:
Structure of getter functions:
they should have get keyword after function keyword and before function name, with no argument, a return type spec...