Monday, July 18, 2016

C++ Inheritance

College of Information and Computer Science

Microsoft::Windows 7

Windows 7 is considered by most people to be the best Operating System in the 60 or so years since OSes were developed.

Reports in June 2016 states that Windows 7 are still used by around 50% of all users while Windows 10 by around 20% of all users.

Let's test your knowledge of Windows 7. Locate the following items in your OS.

1. Desktop
2. Taskbar
3. Navigation Pane
4. Notification Area
5. Control Panel

Microsoft References:
https://www.netmarketshare.com/operating-system-market-share.aspx?qprid=10&qpcustomd=0
http://www.thetoptens.com/best-operating-systems/
https://en.wikipedia.org/wiki/History_of_operating_systems

John Sindayen

Programming::C++

C++ supports multiple inheritance. You can use multiple inheritance in game programming. C++ is also the most used programming language to create computer games because it's fast and it's object-oriented.

Here is an example that demonstrates C++ multiple inheritance. The definitions of each class and implementations of methods are up to your imagination.

class Ninja
{
    int fight();
    int hide();
    int throw();
}

class Turtle
{
    int swim();
}

class Teenage_Mutant_Ninja_Turtle: public Ninja, public Turtle
{
}

Here's some C++ questions. Describe what the following keywords do.

1. private
2. virtual
3. public
4. friend
5. protected

C++ Reference:
https://www.quora.com/What-programming-language-is-the-most-used-to-make-video-games-Which-is-the-best

Cowabunga, dude!

John Sindayen

No comments:

Post a Comment