Pergunta de entrevista da empresa Capgemini Engineering

In C++ if I define a class as an integer, can I extend that class as a float?