-1

I am new to Objective-C and I am working hard to understand how it works. I get the basic idea with pointers, but this thing has me stumped:

-(XYPoint *) origin;

What does it mean when they add the * after the Class name inside of parenthesis?

Thanks.

forrest
  • 10,570
  • 25
  • 70
  • 132

1 Answers1

0

This means that the method origin will return a pointer to an instance of XYPoint.

cli_hlt
  • 7,072
  • 2
  • 26
  • 22