I am just curious the effect of functions inside a class. Let me make my question clear with the following example. Suppose we have two class ClassA
and ClassB
, and they have the same number of property variables. The only difference between them is that ClassA
has more functions than ClassB
:
class ClassA
{
public:
int a;
float b;
double c;
void fun1();
void fun2();
bool fun3();
.....
double fun200();
};
class ClassB
{
public:
int a;
float b;
double c;
void fun1();
};
As you can see there are more functions inside ClassA
than ClassB
. Also, we assume that fun2()... fun200()
are independent of fun1()
.
Now, for example, the user wants to use the functionality of fun1
, which can be realized by ClassA
and ClassB
. Then, my question is what's the effect of having many functions inside ClassA
. Will it hinder its performance? Thanks.