V
van
Writing classes of some algorithms, some parameters needs to be passed into
the classes, the actual algorithms are contained in member functions of
classes.
What I am thinking is having some ordinary member variables as parameters
for algorithms, and member functions as "static". Since "static" member
function cannot access ordinary member variables, it is logic to make the
latter as "static" as well.
I am very curious about how you'd like to design such kind of classes.
Thanks for your sharing!
the classes, the actual algorithms are contained in member functions of
classes.
What I am thinking is having some ordinary member variables as parameters
for algorithms, and member functions as "static". Since "static" member
function cannot access ordinary member variables, it is logic to make the
latter as "static" as well.
I am very curious about how you'd like to design such kind of classes.
Thanks for your sharing!