Introduction to OOP | Chapter 4: Classes and Methods: | next | previous | audio | real | text |
TYPE PlayingCard = POINTER TO PlayingCardDesc; PlayingCardDesc = RECORD suit : INTEGER; rank : INTEGER; faceUp: BOOLEAN; END PROCEDURE (aCard: PlayingCard) setFaceUp (b : BOOLEAN); BEGIN aCard.faceUp = b; END