title: allocating an object of abstract class type
body: <p>im trying to incorporate a CCTable view in my cocos2d-x app. i have followed the source code from the testcpp and i am still getting this error and in not 100% sure why</p>
  
  <p>"allocating an object of abstract class type 'GameList'"</p>
  
  <p>here is my source code</p>
  
  <p>GameList.h</p>
  
  <pre><code>#ifndef __Squares__GameList__
  #define __Squares__GameList__
  
  #include "cocos2d.h"
  #include "cocos-ext.h"
  #include "GameListScene.h"
  #include "GameManager.h"
  
  using namespace cocos2d;
  
  class GameList : public CCLayer, public extension::CCTableViewDataSource, public extension::CCTableViewDelegate
  
  {
  public:
      virtual bool init();
      CREATE_FUNC(GameList);
  
      ~GameList(void);
  
      CCLabelTTF* titleLabel;
      CCLabelTTF* loginLabel;
      CCLabelTTF* passwordLabel;
  
      virtual void tableCellTouched(extension::CCTableView* table, extension::CCTableViewCell* cell);
      virtual CCSize tableCellSizeForIndex(extension::CCTableView *table, unsigned int idx);
      virtual unsigned int numberOfCellsInTableView(extension::CCTableView *table);
  };
  
  #endif
  </code></pre>
  
  <p>GameList.cpp</p>
  
  <pre><code>USING_NS_CC;
  USING_NS_CC_EXT;
  
  bool GameList::init()
  {
      if ( !CCLayer::init() )
      {
          return false;
      }
  
      CCSize size = CCDirector::sharedDirector()-&gt;getWinSize();
  
      CCTableView* tableView = CCTableView::create(this, CCSizeMake(250, 60));
      tableView-&gt;setDirection(kCCScrollViewDirectionHorizontal);
      tableView-&gt;setPosition(ccp(20,size.height/2-30));
      tableView-&gt;setDelegate(this);
      this-&gt;addChild(tableView);
      tableView-&gt;reloadData();
  
      return true;
  }
  
  GameList::~GameList(void)
  {
  
  }
  
  void GameList::tableCellTouched(CCTableView* table, CCTableViewCell* cell)
  {
      CCLOG("cell touched at index: %i", cell-&gt;getIdx());
  }
  
  CCSize GameList::tableCellSizeForIndex(CCTableView *table, unsigned int idx)
  {
      return CCSizeMake(60, 60);
  }
  
  unsigned int GameList::numberOfCellsInTableView(CCTableView *table)
  {
      return 20;
  }
  </code></pre>
  
  <p>any help would be appreciated</p>
  
  <p>Thanks</p>