[Tutor] [Slightly OT] Inheritance, Polymorphism and Encapsulation
Alan Gauld
alan.gauld at btinternet.com
Wed Sep 19 09:23:25 CEST 2007
"Michael Langford" <mlangford.cs03 at gtalumni.org> wrote
Good stuff on inheritance and polymorphism snipped...
> Encapsulation: The process of taking what shouldn't matter to
> the external world, and locking it behind an interface.
Actually I'd call that Abstraction.
Encapsulation literally means taking things and putting them
in a container - a capsule.
Or in the case of OOP a class/object.
> This principle works best when put into small, specialized libraries
> and designed for general use, .....
But the rest I agree with :-)
--
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld
More information about the Tutor
mailing list