Class design, One class in two sources
Posted
by
Pavla
on Programmers
See other posts from Programmers
or by Pavla
Published on 2012-06-03T22:03:09Z
Indexed on
2012/06/03
22:47 UTC
Read the original article
Hit count: 356
c++
|class-design
Is it possible define methods from the same class in different "CPP" files?
I have header file "myClass.h" with:
class myClass
{
public:
// methods for counting
...
// methods for other
...
};
I would like to define "methods for counting" in one CPP and "methods for other" in other CPP. For clarity.
Both groups of methods sometime use the same attributes.
Is it possible? Thanks :).
© Programmers or respective owner