On Tue, Mar 20, 2012 at 02:15:36PM -0700, Leslie S Satenstein wrote:
> Well, I have a request for some help with my learning C++.  For 25 years I 
> have been developing code in C, and now I have started with C++.
> The grammar,  is not my hangup, it is with classes, inheritance, the   this  
> pointer and inheritances and good practices.

The first system to use objects with inheritance (as far as I know) was 
a smalltalk machine.  The objects were things like documents, pictures, 
and the like.  These were displayed on screen as icons and filel 
browsers and the like.  Each object in the smalltaks system had methods 
that could be used to manipulate it.  By clicking on an object you 
could gat a menu containing all the methods applicable to it, and then 
you could slect one and it would be done.  By clicking differently you 
could v]get the default action performed on it (usually the first item 
on the list).

Objects could inherit methods from other objects -- that was useful if 
they could be manipulated to do the same things with the same code.  
Otherwise an object could have a new method defined to replace the 
inherited one.

If you think of objects in this sense, as data structures beinng 
displayed and manipulated on screen, object-inherited programming makes 
a lot more sense than when you think of methids for feeding dogs with 
dog food and cats with cat food and animals with animal food ... 
whoever programs their pets anyway?

-- hendrik
_______________________________________________
mlug mailing list
[email protected]
https://listes.koumbit.net/cgi-bin/mailman/listinfo/mlug-listserv.mlug.ca

Reply via email to