Pergunta de entrevista da empresa Coriolis Technologies

Questions: Why do we need to encapsulate the member function in the class, the same function can be used globally. How an inheritance is working. Add a node at the end of the linked list at runtime. Delete the node with a given value. where binary trees are used in real life. In the execution context who provides us with the stack?