Use of getter function

Why have we used get_price function? What’s the use of it? and why is it called getter?

as explained in video
that price is a private data member
hence you can’t access it in main()
so if you want to get the value of price in main() you will use get_price() function which will be public member function
similarly if you want to set the value of price you will use set_price()