Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool Road::canConstruct(Road* construction){
- printf("Nu poti construi un drum peste alt drum.\n");
- return false;
- }
- bool Road::canConstruct(Construction* construction){
- if (construction->getName() == "Road")
- return this->canConstruct((Road*)construction);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment