已采纳回答 / qq_倩你一生_04232347
#include "Worker.h"#include <iostream> Worker::Worker(string n,int a):Person(n){ Age=a;}void Worker::work(){ //cout<<Name<<" is "<<Age<<endl; cout<<"work--worker"<<endl;}少加了下划线的地方
2016-10-31