getName method: The getName method retrieves or gets the current name attribute or property of an object. It returns the existing name associated with that particular object.
constructor: A constructor is special type of function that creates and initializes objects based on predefined blueprints called classes. It sets initial values for attributes or properties when creating new instances (objects).
instance variable: An instance variable, also known as member variables or fields, are variables declared within class definitions. They hold data that is unique to each instance (object) of the class.