Introduction to OOP: Chapter 3: Classes and Methods: [next] [previous] [audio] [real] [text]

An interface file in C++

# ifndef CARDH
# define CARDH

enum suits {diamond, club, heart, spade};
enum colors {red, black};

	//
	//	playing card abstraction
	//	used in solitaire game
	//	written by Tim Budd, 1995
	//

class Card {
	...
};

# endif
Intro OOP, Chapter 3, Slide 20

The discussion of classes and methods in Java begins on slide 27