c++ - calling static function from constructor of same class -


can call static function constructor of same class.

class a{     static void fun();     a() {fun();} }; 

it giving error while linking code. using visual studio c++, 2010.

yes can - long provide function definition static function well.


Comments

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

How to mention the localhost in android -

php - Calling a template part from a post -