i seem to have difficulty in identifying what is the error in my program.....
#include <iostream.h>
#include <conio.h>
class PassBook {
protected:
int PassBookId;
int age;
float balance;
char name;
public:
void set_values (int a, int b, float c);
{ PassBookId=a; age=b; balance=c;}
};
class Costumer: public PassBook {
public:
int value (void)
{ return (name, age); }
};
class AccountDetails: public PassBook {
public:
int value (void)
{ return (balance); }
};
int main () {
clrscr();
Costumer cost;
AccountDetails ad;
cost.set_values (peter, 34)
ad.set_values (40000)
cout << cost.value() << endl;
cout << ad.value() << endl;
getch();
return 0;
}
thanks very much.....