Banking is defined as the activity of accepting deposits and lending money for profit, with a historical development starting from ancient merchant prototypes. Primary functions of banks include accepting various types of deposits and providing loans, while secondary functions encompass financial services such as merchant banking, leasing, and offering ATM and telebanking services. The document also highlights the evolving role of banks in supporting corporate sectors and providing consumer services like credit cards and locker facilities.