- Debugger: Getting mixed signals
- 'Packaging Infrastructure' Contract Weekly Report #4
- Haiku monthly activity report - 06/2015
- 'Packaging Infrastructure' Contract Weekly Report #3
- 'Packaging Infrastructure' Contract Weekly Report #2
- GCI 2014 winners trip report (mentor side)
- TeX Live and LyX; Changes to the boot code
- 'Packaging Infrastructure' Contract Weekly Report #1
- Beginning of 'Packaging Infrastructure' Contract
- Haiku monthly activity report - 05/2015
Lesson 12: OOPs I Did It Again!
This would be the only time I will capitalize on a really bad Britney Spears reference. I promise. ;-) This lesson introduces us to the wonderful world of C++ and Object Oriented Programming. It's not terribly code-heavy, so this might be a good time to look over past lessons to make sure you understand concepts pretty well -- it only gets bigger from here. :-)
Also, there is now an archive of all programming lessons at the redesigned version of my old website, now titled DarkWyrm's Library. If you've missed one and want to save yourself hunting around my blog or the Haiku website, go there.
- darkwyrm's blog
- Login or register to post comments

Comments
Re: Lesson 12: OOPs I Did It Again!
Hi,
i like your Lessons :-)
i found a small typing error.
When make a Pointer of Television() with "new", then it is a -> not a .
Television()* TV = new Television();
if(!TV->IsTurnedOn)
...
stargater
Re: Lesson 12: OOPs I Did It Again!
I've updated the PDF with the changes. Thanks for pointing it out! :)
Re: Lesson 12: OOPs I Did It Again!
Please continue posting, it is a great refresher for me. I have only recently started programming after a couple years. Your lessons are reminding me of all the basics again.
Thanks.
Re: Lesson 12: OOPs I Did It Again!
Your two unary constructors towards the end are not explicit. Is that an intentional omission or an accident?
Also, as far as I can see from the Haiku coding guidelines, nullary functions do not have a void in the parameter list.