USE OF '.' in describing things

why are we using “word’.'length” nd more of these with ‘.’ what is the use of it .

hello @vars409

to access member function of any class we use . (dot operator).

here length() is a member function to access it we need to do word.length()