I want to use functions like getName, getPrice, etc. of product to retrieve product information in Magento 2.

Can anyone show me how can i achieve that ?