I have created a class like that:
and now i want to create another class which takes pointers of type Visitor.How could i do that?And in main how could i pass a pointer of type Visitor to an object from another class?Thank you.Code:class Visitor { private: int* a; public: Visitor() { a=new int[3]; a[0]=rand()%4 +1; a[1]=rand()%10 +1; pl++; a[2]=pl; } };