Archive for the 'C++' Category

Data Hiding in C

March 2nd, 2008 Posted in C++, Software Engineering | 4 Comments »

Object-oriented programming languages are described as supporting encapsulation, polymorphism, and data hiding. They provide powerful features that allow software components to be designed and implemented for change. Observing the mechanisms in an object-oriented programming language can potentially lead to a parallel implementation in a procedural language. This allows some object-oriented design knowledge that has been […]

Functions, Parameters, and Global Variables in C

February 4th, 2008 Posted in C++, Software Engineering | Comments »

When I define interfaces to the functions that I implement, I try to be explicit about the variables that the functions will examine and modify. From time to time, a global variable is necessary, and I typically employ intermediary functions for accessing such a variable. Avoiding the direct use of global variables within functions is […]

Differences between C++ Classes and Structs

September 13th, 2005 Posted in C++ | 78 Comments »

Probably the most frequently asked interview question that I have received is one that explores the difference between C++ classes and structs. Such a question was asked by a Northrop Grumman recruiter during a career fair at UC Irvine. I was also asked this sort of question during an on-site interview at Heavy Iron Studios. […]

Remembering Function Pointers

August 13th, 2005 Posted in C++, Software Engineering | Comments »

While driving on my way back home at the end of the day, I thought about the things that were very exciting to learn about during my early computing years. The notion of a function pointer was one of those things. I was very familiar with functions and variables. I was also familiar with the […]