Multiple Inheritance in C++: Declaring two base classes
P | N


class computer_screen {

public:

computer_screen(char *, long, int, int);

void show_screen(void);

private:

char type[32];

long colors;

int x_resolution;

int y_resolution;

};

class mother_board {

public:

mother_board(int, int, int);

void show_mother_board(void);

private:

int processor;

int speed;

int RAM;

};


Previous | Next


Last modified at 8/5/97; 12:29:55 PM
Other Links of Interest
College of Computing | EduTech Institute | GVU Center
Mark Guzdial | Papers | CS 2390 Spring '97 Home Page | STABLE | MMC-CaMILE

Slide Master