views:

38

answers:

1

I remember touching on this subject during a class on programming languages. I vaguely remember that a struct could be seen as a mathematical tuple. Is it possible to describe a class or an object in a similar fashion?

+1  A: 

Yes. See "A Theory of Objects" by Abadi and Cardelli.

CesarGon