{"id":798,"date":"2013-04-03T13:05:20","date_gmt":"2013-04-03T02:05:20","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=798"},"modified":"2013-04-03T13:05:20","modified_gmt":"2013-04-03T02:05:20","slug":"c-xcode-oop-composite-objects-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/c-xcode-oop-composite-objects-tutorial\/","title":{"rendered":"C++ Xcode OOP Composite Objects Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/CPlusPlus\/CompositeObjects\/\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"C++ XCode OOP Composite Objects Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/CPlusPlus\/CompositeObjects\/CPlusPlus_XCode_OOP_CompositeObjects-3of.jpg\" title=\"C++ XCode OOP Composite Objects Tutorial\" \/><\/a><p class=\"wp-caption-text\">C++ XCode OOP Composite Objects Tutorial<\/p><\/div>\n<p>Here is a tutorial that introduces you to some aspects of OOP &#8230; oops, forgot to say what OOP stands for &#8230; Object Oriented Programming.<\/p>\n<blockquote><p>Object-oriented programming (OOP) is a programming paradigm that represents concepts as &#8220;objects&#8221; 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.<\/p><\/blockquote>\n<p>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 &#8230; 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).<\/p>\n<p>In this tutorial we touch on the &#8220;components&#8221; aspect of an object circle, whose class we are going to call acircle, and we will introduce a component class of point as a component of a circle.    This is the tip of the iceberg of discussing objects and OOP, but is, perhaps, the easiest concept to start getting your head around how good OOP techniques can be for imagining what your programming should achieve.<\/p>\n<p><strong><em>By the way, do as I say rather than I do &#8230; when you have a classname give it a capital letter.    You&#8217;ll see why when you program a lot &#8230; was a bad male human and didn&#8217;t do that in this tutorial.    Non-snap.   Non-snap.   Non-snap.   Somehow, don&#8217;t think non-snap will catch on quite as well!<\/em><\/strong><\/p>\n<p>Let&#8217;s see some  <a target=_blank title='click picture' href='http:\/\/www.rjmprogramming.com.au\/CPlusPlus\/CompositeObjects\/'>C++ using XCode<\/a> for this &#8230;<\/p>\n<p>Link to Object Oriented Programming information &#8230; <a target=_blank title='OOP' href='http:\/\/en.wikipedia.org\/wiki\/Object-oriented_programming'>from Wikipedia from which quote above comes<\/a>.<br \/>\nLink to Object Oriented Programming inventor information &#8230; <a target=_blank href='http:\/\/en.wikipedia.org\/wiki\/Kristen_Nygaard' title='Object Oriented Programming inventor ... thanks to Wikipedia, again.'>Kristen Nygaard<\/a>.<br \/>\nLink to some downloadable programming code &#8230; rename to <a target=_blank href='http:\/\/www.rjmprogramming.com.au\/CPlusPlus\/CompositeObjects\/main.cpp_GETME' title='Download me'>main.cpp<\/a> for use.\n<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d798' onclick='var dv=document.getElementById(\"d798\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?s=C%2B%2B\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d798' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Here is a tutorial that introduces you to some aspects of OOP &#8230; oops, forgot to say what OOP stands for &#8230; Object Oriented Programming. Object-oriented programming (OOP) is a programming paradigm that represents concepts as &#8220;objects&#8221; that have data &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/c-xcode-oop-composite-objects-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,28,37,40],"tags":[176,244,875,997,1319,1473],"class_list":["post-798","post","type-post","status-publish","format-standard","hentry","category-elearning","category-oop","category-tutorials","category-xcode","tag-c","tag-composite-objects","tag-oop","tag-programming","tag-tutorial","tag-xcode"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/798"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=798"}],"version-history":[{"count":0,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/798\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=798"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=798"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}