DV Trading interview question

C++: what is encapsulation, virtual function, pointer, stack, heap?