0

What is the significant of * in this line please ?

CourseClass::CourseClass(Professor* professor){
}
Indy9000
  • 8,493
  • 2
  • 29
  • 36
Linconnue55
  • 187
  • 3
  • 7
  • 15

2 Answers2

0

It says the function argument is of pointer type.

void foo1(int bar) { }  // foo1 accepts an integer argument

void foo2(int *bar) { }  // foo2 accepts an integer pointer.

codaddict
  • 429,241
  • 80
  • 483
  • 523
0

this function would accept pointer parameter of type Professor

Mohamed Jameel
  • 602
  • 5
  • 21