Wednesday, February 24, 2010

Public vs. Private vs. Protected

Public members can be accessed by any function in the program.

Private members can only be accessed by other functions within the class.

Protected members is accessible to members of classes that inherit from the class in addition to the class itself and any friends

Overloading vs. Overriding

Overloading is when you define two methods with the same name, in the same class, distinguished by their parameters.
-> Overloading is resolved at compile time.

Overriding is when you redefine a method that has already been defined in a parent class (using the exact same parameters).
-> Overriding is resolved at runtime (based on the type of the implicit first parameter).

Thursday, February 18, 2010

Google developing a translator

Wow! It will be very useful if it can really instantly translate during phone calls.

Google developing a translator for smartphones

Wednesday, February 17, 2010

OpenGL Tutorials

1. Opengl Tutorial

2. OpenGL Vertex Buffer Object (VBO): Simple Tutorial

C++ Static Functions

C++ Static Functions

Static member functions have a class scope and they do not have access to the 'this' pointer of the class. When a member is declared as static, a static member of class, it has only one data for the entire class even though there are many objects created forthe class. The main usage of static function is when the programmer wants to have a function which is accessible even when the class is not instantiated.