i have a class called Employee and a method in that class called display(). When that method is called it displays a first name and a last name.
In my int main() i have...
int main()
{
Employee emp;
Employee* ptr;
return 0 ;
}
I was wondering if there were a way to have the pointer point to emp and then use the pointer to display emp as opposed to simply saying...
emp.display();
if this is possible how would i do it?
Thanks for the help