Capgemini Engineering Interview Question

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