C++ Xcode OOP Polymorphic Array Tutorial

C++ XCode OOP Polymorphic Array Tutorial

C++ XCode OOP Polymorphic Array Tutorial

Here is a tutorial that introduces you to some more aspects of OOP … oops, forgot to say what OOP stands for … Object Oriented Programming … specifically regarding Polymorphic Arrays.

Object-oriented programming (OOP) is a programming paradigm that represents concepts as “objects” that have data fields (attributes that describe the object) and associated procedures known as methods. Objects, which are usually instances of classes, are used to interact with one another to design applications and computer programs.

To me, the beauty of OOP is that it can relate to the nouns in our life. Think of an object that you can touch, like a wristwatch … it has features like its type of design, its size, its weight (ie. its properties), and it has objects that go to make it up, like cogs and wheels (ie. its components), and it has its related classes of objects like clock, alarm clock, oven timer etcetera (ie. its characteristics), and its more fundamental essence, the class of watch (ie. its inheritance).

In this tutorial we touch on Polymorphic Arrays and the use of an Abstract Base Class and Two Subclasses which contribute to the types within this array. Has some similarities to MultiCulturalism perhaps?

Let’s see some C++ using XCode for this …

Link to Object Oriented Programming information … from Wikipedia from which quote above comes.
Link to Object Oriented Programming inventor information … Kristen Nygaard.
Also like this link with regard to Polymorphic Arrays.
Link to some downloadable programming code … rename to main.cpp for use.

If this was interesting you may be interested in this too.

This entry was posted in eLearning, OOP, Tutorials, Xcode and tagged , , , , , , , . Bookmark the permalink.

One Response to C++ Xcode OOP Polymorphic Array Tutorial

  1. I wasI used to be able to find good infoinformationadvice from your blog postsblog articlesarticlescontent.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>