Projects > cpp > Issues > Feature #3258

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Constructors should be protected

Feature #3258 [Closed]
ricardo 2013-11-22 00:00 . Updated almost 10 years ago

1st part)
Scene Graph objects like Node, Scene, Sprite, etc… should only be created with the createXXX methods.

The constructor, destructor and the initXXX methods should be moved to the protected: part of the class.

2nd part):
Action object should also have this functionality.

Discussion here:\#message-34092

Patch here:

ricardo 2013-11-22 00:01
  • Subject changed from Constructors should be procted to Constructors should be protected
ricardo 2013-11-22 00:03
  • Assignee set to ricardo
zhangxm 2013-12-30 06:01
  • Status changed from New to Closed

Atom PDF

Start date:2013-11-21
Due date:
% Done:


Target version:3.0-beta