comp.lang.ada
 help / color / mirror / Atom feed
From: sparre@meyer.fys.ku.dk (Jacob Sparre Andersen)
Subject: Re: Teaching OO
Date: 6 Jan 95 19:50:18 +0100
Date: 1995-01-06T19:50:18+01:00	[thread overview]
Message-ID: <1995Jan6.195018.2180@nbivax.nbi.dk> (raw)
In-Reply-To: 3ehehd$61c@gutemine.informatik.uni-kiel.de

Please note that followup is set to comp.object and comp.edu only.

Martin Ameskamp (ma@informatik.uni-kiel.de) wrote:
|^^^^^^^^^^
| 	Right, this is exactly my question. I'm currently teaching a basic
| 	course for 2nd year computing students that's mainly C++ and OOP
| 	(with a few odd bits like make, lex & yacc thrown in).
| 	Any hints for a good motivation would be greatly appreciated
| 	(if none come, it's back to toy examples...)
 ^^^^^^^^^^
I don't know if this is considered a toy example.

Last year, one of my friends asked me to teach him OOP. At that time we 
were following a course on laser physics, so I decided to use this as a
basis for my explanations.
When you are working with a laser beam, you can model the optical elements 
with 2*2 matrices and the beam at a certain position with a 1*2 matrix. 
When the beam propagates through an optical element, you multiply the beam 
column by the relevant matrix.
We decided to implement a program that modelled a optical setup, using OOP.
This was quite nice, because after we had designed our base class for 
optical elements, we could implement the optical elements independent of 
each other.

Well, at least it's a working toy.

Greetings,
                     Jacob Sparre Andersen.
--
URL's: "mailto:sparre@nbi.dk", "http://meyer.fys.ku.dk/~sparre", 
       "mailto:sparre+@pitt.edu" & "http://www.pitt.edu/~sparre".
--
"We need a plan to diverge from", Fesser



       reply	other threads:[~1995-01-06 18:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3ehehd$61c@gutemine.informatik.uni-kiel.de>
1995-01-06 18:50 ` Jacob Sparre Andersen [this message]
     [not found] <1994Dec31.225557.5213@mole-end.matawan.nj.us>
     [not found] ` <D2LLCo.Kw9@applicom.co.il>
1995-01-19 20:03   ` Teaching OO Jacob Sparre Andersen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox