What is the correct way to call the count member function for the object pointer called grades?

Advertisement

class my_array{
public:
int count();
}; // … more members above

int main(){
my_array *grades = new my_array();
}; // … more code above

  • grades.count();
  • my_array->count();
  • grades->count();
  • my_array.count();
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment

Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.