//---------------------------------------[아이템]들의 부모 클래스-------------------------------------------
class item {
        public:
                item();
                item(string itemName, int value){
                        this->itemName;
                        this->value;
                }
                string returnName(){
                        return itemName;
                }
        private:
                string itemName;
                int value;
};

//---------------------------------------[아이템]의 자식 클래스---------------------------------
//---------------------------------------[무기]클래스-------------------------------------------
class weapon : public item {

        public:
                weapon(){

                }
                weapon(string name, int wPower, int wValue):item(name,wValue){
                        power = wPower;
                }
        private:
                int power;//무기의 공격력
};
//---------------------------------------[아이템]끝---------------------------------------------------------

//---------------------------------------[액터]클래스-------------------------------------------------------
class actor {
        public:
                actor(){

                }
                weapon actorWeapon();
                actor(char *aName,int aHP, int aGold) {
                        this->name = new char[strlen(aName) + 1];
                        strcpy(this->name, aName);
                        HP = aHP;
                        gold = aGold;

                }
                void showInfo(){
                        weapon = actorWeapon.returnName();
                        cout << "이름        :"<<name<<endl<<"HP        :"<<HP<<endl<<"무기        :"<< weapon<<endl<<"소지금        :"<<gold<<"G"<<endl;
                }

        private:
                char *name;//액터의 이름
                int HP;//액터의 Hit Point
                int gold;//소지금
                string weapon;//착용 무기
                
};


//---------------------------------------[액터]클래스 끝----------------------------------------------------



지금 클래스를 이렇게 짜고 있는데 액터 클래스에서 
weapon = actorWeapon.returnName();
이부분에서 error c2228: '.returnName'왼쪽에는 클래스/구조체/ 공용 구조체가 있어야 합니다.
라고 뜨는데 어떻게 해야되 이거????
액터 클래스 내부에 weapon actorWeapon(); 이렇게 해줬는데 뭐가 부족한걸까