Whats the object-oriented way to become wealthy?

Q: "Whats the object-oriented way to become wealthy?"
A: Inheritance

This is another programming joke. To understand this joke you have to understand at least a little bit about object oriented programming. There is an object oriented programming technique called inheritance, which is a mechanism that allows one class to take on behavior or information from another class (the one that it is inheriting from).

The joke is that the word inheritance is also a word that means (approximately) "things that someone receives from a deceased person after the death of that person". People think that when you receive an inheritance, that you will become wealthy, because the most common time that people talk about inheritances is in regards to people that have become wealthy by inheriting things from people.

In effect this joke is a pun that requires domain specific knowledge to understand.

Comments

More jokes