S
syang8
I want to declare a function F() in a class, which has two children A
and B. I need A.func() return int and B.func() return double. How can
I do that? The F() in parent can be empty or virtual, I just need the
declaration. No implementation is required.
and B. I need A.func() return int and B.func() return double. How can
I do that? The F() in parent can be empty or virtual, I just need the
declaration. No implementation is required.