Home » Archives for October 28th, 2009
Early Binding and Late Binding
Early Binding:
The events that take place at the compile time are called early binging. It is also called static binding. It indicates that all information required to call a function is known at the compile time. The compiler decides at compiler time what method will respond to the message sent to the pointer.
The accessing of member functions of a class...
Pointers to Objects
Pointers to Objects:
The members of a class can be accessed through the pointer to the class. The arrow (–>) symbol is used to access them. This symbol is also known as member access operator. It is denoted by a hyphen (–) and a greater than sign (>). The general syntax to access a member of a class through its pointer is:
p –> class member
Where
[P] :...