0

What is the significant of * in this line please ?

CourseClass::CourseClass(Professor* professor){
}
Indy9000
  • 8,651
  • 2
  • 32
  • 37
Linconnue55
  • 187
  • 3
  • 7
  • 16

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
  • 445,704
  • 82
  • 492
  • 529
0

this function would accept pointer parameter of type Professor

Mohamed Jameel
  • 602
  • 5
  • 21