#include <iostream> class A { public: void F1(int a) const { std::cout << a; } void F1(float a) { std::cout << 2*a; } }; int main() { const A a = A(); a.F1(5.5); return 0; }
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment