Persion.h
#include <string>
using namespace std;

#ifndef PERSION_H
#define PERSION_H
class Persion
{
private:
string name;
public:
Persion(string name);
void say();
};
#endif
Persion.cpp
#include <iostream>
#include <string>
#include "Persion.h"
using namespace std;
Persion::Persion(string name)
{
this->name=name;
}
void Persion::say()
{
cout<<"my name is "<<this->name<<endl;
}
void main()
{
Persion persion("huyvanpull");
Persion *pPersion = &persion;
pPersion->say();
}
































