AMD interview question

explain some basic C++ concepts, like inheritance, template.