nucLeaRsc2

Untitled

Nov 29th, 2014
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. bool Road::canConstruct(Road* construction){
  2. printf("Nu poti construi un drum peste alt drum.\n");
  3. return false;
  4. }
  5.  
  6. bool Road::canConstruct(Construction* construction){
  7. if (construction->getName() == "Road")
  8. return this->canConstruct((Road*)construction);
  9.  
  10. return true;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment