Pregunta de entrevista de Tata Consultancy Services

What is inheritance, friend function, pointers in C++?