Capgemini Engineering interview question

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