Skip to content

A demonstration of what the THIS POINTER is and how it is used

Notifications You must be signed in to change notification settings

CCCSBuffet/pk_what_is_this

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What Is "this"

This demonstration aims to explain the role and implementation of the "this pointer."

When a method belonging to a class instance is called, the method operates upon the data members of exactly that instance. How does it know which instance to operate upon?

The C++ compiler performs many slights of hand including the implementation of a hidden parameter to all non-static class methods. The hidden parameter is the this pointer.

About

A demonstration of what the THIS POINTER is and how it is used

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published