Introduction to OOP: Chapter 1: Thinking Object-Oriented: [next] [previous] [audio] [real] [text]

Different Actions


var
	Flo : Florist;
	Beth : Wife;
	Ken : Dentist;

begin
	Flo.sendFlowersTo(myFriend);  { will work }
	Beth.sendFlowersTo(myFriend); { will also work }
	Ken.sendFlowersTo(myFriend); { will probably not work }
end;

Intro OOP, Chapter 1, Slide 19