Class or Struct?

| | Comments (0)
I stumbled over an interview with Bjarne Stroustrup and he said something clever: "My rule of thumb is that you should have a real class with an interface and a hidden representation if and only if you can consider an invariant for the class." Bjarne Stroustrup I find this a very good rule of thumb.

Leave a comment

About this Entry

This page contains a single entry by Andreas Thorsén published on February 28, 2005 10:16 PM.

No tables two column layout was the previous entry in this blog.

Goods from Japan arrive is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.