in reply to Re: Can a class constructor create an instance of a derived class and return it? Or, can objects transmute into other objects?
in thread Can a class constructor create an instance of a derived class and return it? Or, can objects transmute into other objects?

Because it holds some global class data.
  • Comment on Re^2: Can a class constructor create an instance of a derived class and return it? Or, can objects transmute into other objects?

Replies are listed 'Best First'.
Re^3: Can a class constructor create an instance of a derived class and return it? Or, can objects transmute into other objects?
by Corion (Patriarch) on Sep 28, 2017 at 16:57 UTC

    Why not turn this "global class data" into simply global variables?

    What makes that "global class data" different from global variables in that package?