Magento Cart

In the Magento Cart we define
(1) How to add product into cart.
(2) Get product from the cart.
(3) Delete product from the cart.