Archive for April, 2009

Virtual Functions in C++

April 26th, 2009 by carlos

Object oriented programming is a style of programming that requires that functionality be attached to objects, instead of freely available through functions. C++, although not being a pure object oriented language, supports the notion of objects and classes of objects. One of the big advantages of programming with objects is that they can behave differently […]

Class Access Levels

April 20th, 2009 by carlos

C++ provides three access levels for members of a class. Both member variables and member functions can be tagged as public, private, or protected, depending on the intended use of the member in the class. A public data member of member function is one that can be accessed by any user of the class, independent […]

Using the assert macro in C++

April 9th, 2009 by carlos

Writing good software is a difficult proposition. It is sometimes easy to write sub-par software, with a high number of defects and poor maintainability, but to make sure that software has good quality and is easy to modify one needs to take care of many issues. One of the necessary factors in creating good software […]