What is the implicit name of the parameter that gets passed into the set method of class in c?

1 answer

Answer

1110683

2026-05-02 14:40

+ Follow

Every non-static member function has a hidden pointer parameter named this which refers to the instance of the class the function was invoked against. For a given class, C, the type of the hidden this pointer is const C* but if the function is declared const, the pointer is const C* const. When referring to any class member, m, from within any non-static member function, this->m is implied.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.