cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
how to inherit class
how to inherit class
Aug 10, 2012 at 5:10am UTC
cdf
(38)
i have a header file that i am not allowed to modify, and the problem is that the vars are protected, so i guess i have to inherit that class, how do i do this, and then, how do i write a constructor (maybe just a basic example and tips?)
this would be the header of the base class...
1
2
3
4
5
class
CLL {
protected
:
char
Name[20]; };
Aug 10, 2012 at 5:48am UTC
oldcrow
(37)
I'm sure you'll be fine by just reading this:
http://www.cplusplus.com/doc/tutorial/inheritance/
If you have any further questions, feel free to ask again.
Topic archived. No new replies allowed.