A Class of Objects

March 22nd, 2007 | by Joe |

I was trying to think of a straightforward explanation of the difference between a class and an object (in OOP terms), and came up with this:

Objects are specific instances of classes. When you create a class, you are literally creating “a class of objects.” For instance, let us create a class of double basses. All objects of class “double bass” have certain properties defined: Maker, city, year, varnish, string length, etc. But this particular bass was made by Carlo Testore in Milan in 1710, has a deep reddish varnish and about a 42″ string length. This Testore double bass is an object of the class “double bass.”

Now I just need a bass player to explain OOP to.

Tags:

  1. 2 Responses to “A Class of Objects”

  2. By Ellen on Mar 31, 2007 | Reply

    Thanks for your recent post — glad to see you enjoyed looking at (and thinking about) cinnamon rolls. It must’ve hit a common chord (pardon the musical pun, an interest that you and I share, the music, not the pun, unless you also love puns!) because it generated more comments than any other post I’ve ever made!

    I was wondering if I could speak with you about coding. I know it can take a RIDICULOUS amount of time, so I wouldn’t burden you with how-to’s as much as asking for advice on how to get how-to’s. If so, please email me.

    From one Celiac (do you have C.D. or are you gluten-intolerant?) fellow musician (I have my B. Music from Boston University, piano) to another,

    Ellen

  3. By Joe on Mar 31, 2007 | Reply

    Sure - let me know what your coding needs are and I’m sure I can point you in the right direction.

    I can see why your post was so popular. Cinnamon rolls are a big deal and that’s like the final frontier in gluten-free cooking. I have yet to try GF cinnamon rolls that comes even remotely close to the doughy, sticky, yummy goodness I remember.

Sorry, comments for this entry are closed at this time.