home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ for Dummies (3rd Edition)
/
C_FD.iso
/
CHAP15
/
CHAP15_3.CPP
< prev
Wrap
C/C++ Source or Header
|
1996-09-15
|
391b
|
23 lines
// Chap15_3.cpp
// This won't compile due to ambiguities in the constructor.
class Student
{
public:
Student(char *pName = "no name");
Student(Student&);
};
class Teacher
{
public:
Teacher(char *pName = "no name");
Teacher(Teacher&);
};
void addCourse(Student);
void addCourse(Teacher);
int main()
{
addCourse("Prof. Dingleberry");
return 0;
}