<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3969690101866406496</id><updated>2024-09-11T12:47:22.152-07:00</updated><category term="Array elements"/><category term="Base"/><category term="Built-in operators"/><category term="C++ Control statements"/><category term="C++ arrays"/><category term="C++ inheritance"/><category term="C++ operator overloading"/><category term="Class"/><category term="Derived classes"/><category term="Executing Statements Using  C++ Function"/><category term="Pointer variables in C++"/><category term="Program Structure"/><category term="Selection Statements"/><category term="Self-defined data type"/><category term="Structure"/><category term="Transfer of control"/><category term="Union"/><title type='text'>Understanding c++</title><subtitle type='html'>Better way of understanding C++</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://simplifiedcplus.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3969690101866406496/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://simplifiedcplus.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Dr. Steven Kamukama</name><uri>http://www.blogger.com/profile/11704184615546643206</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgp3USqUzJk6zjDOK21KF-ZjgOMazJ9W7VqQVwVZf7e1MgDKk8iZA3ZhL7zKLrFcHGSX9MBZebKb6MCaK_JrA_vDwfFAi3xlLOJHqer8Ur7990nhyq0GfbhbRkEPcNyTQ/s220/StevenPhoto.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3969690101866406496.post-3494174102254851094</id><published>2012-08-12T04:42:00.000-07:00</published><updated>2013-11-01T23:01:53.312-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Executing Statements Using  C++ Function"/><category scheme="http://www.blogger.com/atom/ns#" term="Program Structure"/><title type='text'>Introduction to C++ Functions and Program Structure</title><content type='html'>&lt;h1&gt;
&lt;/h1&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Executing statements using C++ Functions, otherwise called methods or procedures in other 
programming languages makes it easy to structure a program by separating
 its tasks into self-contained units. One example of a C++ function is main function &lt;tt&gt;int main ().&lt;/tt&gt; Because functions are 
written by the programmers, they are sometimes referred to as 
user-defined functions or programmer-defined functions. In definition 
terms, a C++ function is a block of statements that execute when called from
 some point of the program. Executed statements in C++ function 
are written once and are reused from several locations in a program, thus enabling its structuring. Statements for execution under one C++ Function &amp;nbsp;are hidden from other functions.&lt;br /&gt;
&lt;br /&gt;
Executing statements using&amp;nbsp; C++ function helps to perform an assignment or a task that is required to complement full execution of the program. C++ functions enable us to structure the program but maintain its &amp;nbsp;flow and&amp;nbsp;coordination.There are two kinds of C++ functions: built-in and user defined functions. The built-in C++ functions are usually in three categories: 

      those which are part of the operating system, and others which are part of the C++ programming environment. The functionality or execution of the built-in C++ functions is normally the same irrespective of the source and the environment.&lt;br /&gt;
&lt;br /&gt;
This tutorial will help you understand better the execution of statement using various forms of C++ functions, how to create one, how 

      and when to use a function to structure a program. To declare a C++ function, you specify first its return type, i.e. the data 
type to be returned by the function. The return type is followed by the 
name or the identifier by which the function will be called. The C++ function name is followed by a pair of parentheses. Inside the the pair 
of parentheses also know as the &lt;b&gt;parameter list&lt;/b&gt; area, can be left empty implying that the function will not receive any arguments or can include as many parameters as needed. To understand more on executing statements using C++ Functions, read more on &lt;a href=&quot;http://simplifiedcplus.blogspot.com/p/introduction-to-functions.html&quot;&gt;introduction to C++ functions&lt;/a&gt; including details on, Declaration of functions, Function Prototype and Function Signatures, Argument Coercion, Argument Promotion Rules, and Void Function Or Function with no Return Type.&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://simplifiedcplus.blogspot.com/feeds/3494174102254851094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://simplifiedcplus.blogspot.com/2012/08/introduction-to-c-functions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3969690101866406496/posts/default/3494174102254851094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3969690101866406496/posts/default/3494174102254851094'/><link rel='alternate' type='text/html' href='http://simplifiedcplus.blogspot.com/2012/08/introduction-to-c-functions.html' title='Introduction to C++ Functions and Program Structure'/><author><name>Dr. Steven Kamukama</name><uri>http://www.blogger.com/profile/11704184615546643206</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgp3USqUzJk6zjDOK21KF-ZjgOMazJ9W7VqQVwVZf7e1MgDKk8iZA3ZhL7zKLrFcHGSX9MBZebKb6MCaK_JrA_vDwfFAi3xlLOJHqer8Ur7990nhyq0GfbhbRkEPcNyTQ/s220/StevenPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3969690101866406496.post-8064445635954269997</id><published>2011-12-09T05:10:00.004-08:00</published><updated>2012-10-08T00:25:33.938-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C++ Control statements"/><category scheme="http://www.blogger.com/atom/ns#" term="Selection Statements"/><category scheme="http://www.blogger.com/atom/ns#" term="Transfer of control"/><title type='text'>Using C++ Control Statements to Transfer Control of Execution</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;Introduction to C++ Control Statements:&amp;nbsp;&lt;/b&gt;Statements that specify the order in which actions are executed are called control statements. C++ control statements in a program execute one after the other in the order they are written (also known as &lt;b&gt;sequential execution&lt;/b&gt;) unless there is a direct instruction to act otherwise. All the programs we have used so far included sequential execution which is one of types of C++ control statements. There are however other ways in which a program can execute a statement other than the&amp;nbsp;sequence of next in the line . Enabling this to happen is known as &lt;b&gt;transfer of control&lt;/b&gt;. Transfer of control includes other two forms of control statements. These types of C++ control statements&amp;nbsp; include selection statements and repetition statements.&lt;/div&gt;
&lt;h3 style=&quot;text-align: justify;&quot;&gt;







Selection Statements&lt;/h3&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;Selection Statements which are forms of C++ control statements are sub&amp;nbsp;divided in&amp;nbsp;three types of other types namely, &lt;/span&gt;&lt;tt style=&quot;font-weight: normal;&quot;&gt;if, if….else &lt;/tt&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;and&lt;/span&gt;&lt;tt style=&quot;font-weight: normal;&quot;&gt; switch&lt;/tt&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&amp;nbsp;control statements.&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: justify;&quot;&gt;







If Selection Statement&lt;/h4&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
One form of a C++ control statement is the&amp;nbsp;&lt;i&gt;&lt;tt&gt;if&lt;/tt&gt; selection statement&lt;/i&gt;&amp;nbsp;which performs an action if a set condition is correct but if the condition is false the program skips the action and execution continues with the rest of the statements. An&lt;tt&gt; if&lt;/tt&gt; statement is written with a key &lt;b&gt;if&lt;/b&gt; followed by a condition enclosed in braces and then a statement to be executed when the condition is correct. Where the &lt;b&gt;if&lt;/b&gt; form of control statement is to be used,&amp;nbsp;it is advisable to enclose statements in curly brackets,&amp;nbsp;where more than one are to be executed, .&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
For more information on C++ control statements, please refer to the detailed chapter on &lt;a href=&quot;http://simplifiedcplus.blogspot.com/p/introduction-to-c-control-statements.html&quot; title=&quot;Using selection statements in C++&quot;&gt;C++ Selection Statements&lt;/a&gt;, &lt;a href=&quot;http://simplifiedcplus.blogspot.com/p/introduction-to-c-control-statements.html#Repetition%20control&quot; title=&quot;Using c++ repetition statements&quot;&gt;Repetition C++ control statements&lt;/a&gt; and &lt;a href=&quot;http://simplifiedcplus.blogspot.com/p/introduction-to-c-control-statements.html#Other%20Selection%20Control&quot; title=&quot;Other forms of transfer of control statements in C++&quot;&gt;Other transfer of control statements &lt;/a&gt;.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://simplifiedcplus.blogspot.com/feeds/8064445635954269997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://simplifiedcplus.blogspot.com/2011/12/c-control-statements-and-transfer-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3969690101866406496/posts/default/8064445635954269997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3969690101866406496/posts/default/8064445635954269997'/><link rel='alternate' type='text/html' href='http://simplifiedcplus.blogspot.com/2011/12/c-control-statements-and-transfer-of.html' title='Using C++ Control Statements to Transfer Control of Execution'/><author><name>Dr. Steven Kamukama</name><uri>http://www.blogger.com/profile/11704184615546643206</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgp3USqUzJk6zjDOK21KF-ZjgOMazJ9W7VqQVwVZf7e1MgDKk8iZA3ZhL7zKLrFcHGSX9MBZebKb6MCaK_JrA_vDwfFAi3xlLOJHqer8Ur7990nhyq0GfbhbRkEPcNyTQ/s220/StevenPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3969690101866406496.post-4832655808836456097</id><published>2011-11-29T05:17:00.004-08:00</published><updated>2012-10-13T11:45:07.515-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Pointer variables in C++"/><title type='text'>Understanding Pointer Variables in C++</title><content type='html'>&lt;h3&gt;






&lt;/h3&gt;
&lt;h3&gt;

Understanding Pointers Variables &lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
A pointer in C++ is an address of a memory location where data is stored. Understanding pointer variables in in C++ provides an opportunity to advance knowledge on how programs access data in memory. A pointer in in C++ provides an indirect way of accessing data in memory.  When  a variable is declared, the compiler reserves and assigns it a portion of space in memory. This portion of memory is known to the computer by the address associated to it. Knowing the memory address of the variable helps us in understanding pointers in in C++. Once we know this address, we can utilize it using the a reference or a pointer.  A pointer variable is defined to point (to store the address of) to the data stored at a specific memory. &lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;






Understanding how to Declare and Initialize a Pointer in C++&lt;/h3&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
To understand how to initialize and declare a pointer variable in c++, start with the data type followed by a dereference operator (*) and the name of the variable. Once a C++ pointer has been declared, we assign it with the address of the variable to store. By default, it does not matter how you append the *, as long as it is between the data type and the pointer variable.  The name of a pointer variable, must comply with the rules that govern every variable. The value of a declared pointer variable in c++ is the address to which it points. Follow the example below.&lt;/div&gt;
&lt;pre&gt;      int    *ptr1;                    // pointer to an int
      float   *ptr2;                    // pointer to a float &lt;/pre&gt;
&lt;br /&gt;
Assume we have two variables &lt;i&gt;age &lt;/i&gt;and&lt;i&gt; height,&lt;/i&gt;we can now store the address of each&amp;nbsp;in our pointer variables&amp;nbsp;&lt;i&gt; ptr1 and ptr2&lt;/i&gt; respectively as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;                ptr1 = &amp;amp;age;       //ptr1 points to age;

                ptr2=&amp;amp;height     //ptr2 points to height;&lt;/pre&gt;
&lt;br /&gt;
Read the whole chapter on &lt;a href=&quot;http://www.blogger.com/&quot; title=&quot;Using pointer variables in C++&quot;&gt;understanding pointer variables in C++ &lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://simplifiedcplus.blogspot.com/feeds/4832655808836456097/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://simplifiedcplus.blogspot.com/2011/11/introduction-to-pointers-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3969690101866406496/posts/default/4832655808836456097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3969690101866406496/posts/default/4832655808836456097'/><link rel='alternate' type='text/html' href='http://simplifiedcplus.blogspot.com/2011/11/introduction-to-pointers-in-c.html' title='Understanding Pointer Variables in C++'/><author><name>Dr. Steven Kamukama</name><uri>http://www.blogger.com/profile/11704184615546643206</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgp3USqUzJk6zjDOK21KF-ZjgOMazJ9W7VqQVwVZf7e1MgDKk8iZA3ZhL7zKLrFcHGSX9MBZebKb6MCaK_JrA_vDwfFAi3xlLOJHqer8Ur7990nhyq0GfbhbRkEPcNyTQ/s220/StevenPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3969690101866406496.post-5499315187788554191</id><published>2011-11-02T01:40:00.006-07:00</published><updated>2012-04-20T03:04:43.879-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Array elements"/><category scheme="http://www.blogger.com/atom/ns#" term="C++ arrays"/><title type='text'>Introduction to C++ Arrays</title><content type='html'>&lt;h2&gt;


Understanding C++ Arrays&lt;/h2&gt;
&lt;br /&gt;
C++ Arrays help us understand how to store large data. C++ arrays consists of set of objects (called its elements), all of which are of the same type and are arranged contiguously in memory. understanding C++ Arrays provide you with a convenient way to manipulate storage of large amounts of data from within programs. C++ Arrays allow for setting aside a group of memory locations which we can then manipulate as a single entity, at the same time enabling us direct access to any individual component.&lt;br /&gt;
&lt;br /&gt;
C++ Array elements are grouped under one symbolic name or identifier. All C++ array elements are positioned next to one another in the memory and are indexed in the order they are arranged beginning from position zero. The index of each C++ array element is used to access that element. The number of elements in a C++ array is called its dimension. The dimension of a C++ array is fixed and predetermined, it cannot be changed during program execution.&lt;br /&gt;
&lt;br /&gt;
A C++ array is declared as follows:&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
DataType ArrayIdentifier [NumberOfElements]&lt;br /&gt;
&lt;br /&gt;
Suppose we want to store the grades of 10 students in a class. We can declare and initialize C++ array elements  of grades array as follows; &lt;br /&gt;
&lt;br /&gt;
int grades[10]={35,60,55,50,65,80,70,75,45,85}&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://simplifiedcplus.blogspot.com/p/introduction-to-c-arrays.html&quot; title=&quot;more on introduction to C++ Arrays&quot;&gt;Read the whole Chapter on C++ Arrays&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://simplifiedcplus.blogspot.com/feeds/5499315187788554191/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://simplifiedcplus.blogspot.com/2011/11/introduction-to-c-arrays.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3969690101866406496/posts/default/5499315187788554191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3969690101866406496/posts/default/5499315187788554191'/><link rel='alternate' type='text/html' href='http://simplifiedcplus.blogspot.com/2011/11/introduction-to-c-arrays.html' title='Introduction to C++ Arrays'/><author><name>Dr. Steven Kamukama</name><uri>http://www.blogger.com/profile/11704184615546643206</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgp3USqUzJk6zjDOK21KF-ZjgOMazJ9W7VqQVwVZf7e1MgDKk8iZA3ZhL7zKLrFcHGSX9MBZebKb6MCaK_JrA_vDwfFAi3xlLOJHqer8Ur7990nhyq0GfbhbRkEPcNyTQ/s220/StevenPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3969690101866406496.post-3310545225260249550</id><published>2011-09-15T07:33:00.000-07:00</published><updated>2012-04-20T02:37:46.720-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class"/><category scheme="http://www.blogger.com/atom/ns#" term="Self-defined data type"/><category scheme="http://www.blogger.com/atom/ns#" term="Structure"/><category scheme="http://www.blogger.com/atom/ns#" term="Union"/><title type='text'>C++ Classes incliding Structures-Classes-Unions</title><content type='html'>&lt;h1 style=&quot;text-align: justify;&quot;&gt;


Introduction to C++ Classes&lt;/h1&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Classes (also known as composite data types) are a collection of different data types grouped together to form one new self-defined data type which can be categorized in form of a structure, class or union. The variable types we have used so far have been &lt;b&gt;primitive types &lt;/b&gt;because they are declared in a very simplified manner. Each variable represented an object in its whole ( i.e int car) but at times we want a group of values to be considered as one entity to represent an object (car).&lt;br /&gt;
&lt;br /&gt;
For example, we may need to use one or more data types to represent the car object. In such a situation we can group the different data types into one data type of our liking and then use it the same way we have used other data types. In C++, there are three techniques of defining a new self-defined data type: a structure, a class, and a union. &lt;/div&gt;
&lt;h3 style=&quot;text-align: justify;&quot;&gt;


Structures&lt;/h3&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
A structure is an aggregate of data types that together form new self-defined data type. It is built using several types including the structs. We create a structure using a the &lt;tt&gt;struct&lt;/tt&gt; keyword, followed by a name for the object and the body of the structure with a semicolon at the end. The naming of the struct must follow conventional rules of names in C++. To create a composite type at least one known data type should be used to declare a variable in the body of the structure. Below is an example of a car structure.&lt;a href=&quot;http://simplifiedcplus.blogspot.com/p/c-classes-incliding-structures-classes.html&quot; title=&quot;More on introduction to C++ Classes&quot;&gt;Read more on C++ Classes&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simplifiedcplus.blogspot.com/feeds/3310545225260249550/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://simplifiedcplus.blogspot.com/2011/09/c-classes-incliding-structures-classes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3969690101866406496/posts/default/3310545225260249550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3969690101866406496/posts/default/3310545225260249550'/><link rel='alternate' type='text/html' href='http://simplifiedcplus.blogspot.com/2011/09/c-classes-incliding-structures-classes.html' title='C++ Classes incliding Structures-Classes-Unions'/><author><name>Dr. Steven Kamukama</name><uri>http://www.blogger.com/profile/11704184615546643206</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgp3USqUzJk6zjDOK21KF-ZjgOMazJ9W7VqQVwVZf7e1MgDKk8iZA3ZhL7zKLrFcHGSX9MBZebKb6MCaK_JrA_vDwfFAi3xlLOJHqer8Ur7990nhyq0GfbhbRkEPcNyTQ/s220/StevenPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3969690101866406496.post-7325837980710643592</id><published>2011-09-15T07:19:00.000-07:00</published><updated>2012-01-08T04:34:31.488-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Built-in operators"/><category scheme="http://www.blogger.com/atom/ns#" term="C++ operator overloading"/><title type='text'>Understanding C++ Operator Overloading and User Defined Class Objects</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;In understanding c++ operator overloading we begin by defining the Concept. In C++ operator overloading means ‘providing different functionality to an operator under a different environment. Majority of the C++ built-in operators are already overloaded. Like functions, operators take operands (arguments) and return a value. operator overloading can be done on many operators for them to act in a specific manner on the argument or arguments and return a value. &lt;br /&gt;
&lt;br /&gt;
&lt;p&gt;To have a better understanding of c++ operator oveloading, let us look at this  example. The plus (+) operator is overloaded to add two integers, increment an integer by one and concatenate a string. Likewise a minus (-) operator is overloaded to subtract two integers, and decrement an integer by one. Like the + and –, C++ provides built-in overloaded definitions for most operators to perform various functionalities directly but only on built-in types. However, C++ provides abilities for a programmer to overload built-in operators to act on user-defined types in a user-defined manner. Read the details on&lt;a href=&quot;http://simplifiedcplus.blogspot.com/p/c-operator-oveloading.html&quot;&gt;understanding C++ Operator Overloading &lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simplifiedcplus.blogspot.com/feeds/7325837980710643592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://simplifiedcplus.blogspot.com/2011/09/c-operator-overloading-and-user-defined.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3969690101866406496/posts/default/7325837980710643592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3969690101866406496/posts/default/7325837980710643592'/><link rel='alternate' type='text/html' href='http://simplifiedcplus.blogspot.com/2011/09/c-operator-overloading-and-user-defined.html' title='Understanding C++ Operator Overloading and User Defined Class Objects'/><author><name>Dr. Steven Kamukama</name><uri>http://www.blogger.com/profile/11704184615546643206</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgp3USqUzJk6zjDOK21KF-ZjgOMazJ9W7VqQVwVZf7e1MgDKk8iZA3ZhL7zKLrFcHGSX9MBZebKb6MCaK_JrA_vDwfFAi3xlLOJHqer8Ur7990nhyq0GfbhbRkEPcNyTQ/s220/StevenPhoto.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3969690101866406496.post-6188214689050083709</id><published>2011-09-15T07:10:00.000-07:00</published><updated>2011-11-30T01:57:25.056-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Base"/><category scheme="http://www.blogger.com/atom/ns#" term="C++ inheritance"/><category scheme="http://www.blogger.com/atom/ns#" term="Derived classes"/><title type='text'>Introduction to C++ class inheritance</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;In C++, inheritance is a technique in which a C++ class known as the derived class absorbs, utilizes and enhances the data and behavior of another class known the base class . C++ inheritance enhances object-oriented programming in a way that it saves program development time, and supports reuse of debugged high quality software. In c++ inheritance allows an object oriented programmer to focus on the larger picture rather than specific cases. Because different classes sometimes require similar data members, inheritance enables avoidance of duplication of codes in the same project environment. The base class captures the most common members and then supplies them to the derived classes with the help of inheritance technique. &lt;a href=&quot;http://simplifiedcplus.blogspot.com/p/c-class-inheritance.html&quot;&gt;D&lt;span style=&quot;color: black;&quot;&gt;e&lt;/span&gt;tails&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://simplifiedcplus.blogspot.com/feeds/6188214689050083709/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://simplifiedcplus.blogspot.com/2011/09/introduction-to-c-class-inheritance.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3969690101866406496/posts/default/6188214689050083709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3969690101866406496/posts/default/6188214689050083709'/><link rel='alternate' type='text/html' href='http://simplifiedcplus.blogspot.com/2011/09/introduction-to-c-class-inheritance.html' title='Introduction to C++ class inheritance'/><author><name>Dr. Steven Kamukama</name><uri>http://www.blogger.com/profile/11704184615546643206</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgp3USqUzJk6zjDOK21KF-ZjgOMazJ9W7VqQVwVZf7e1MgDKk8iZA3ZhL7zKLrFcHGSX9MBZebKb6MCaK_JrA_vDwfFAi3xlLOJHqer8Ur7990nhyq0GfbhbRkEPcNyTQ/s220/StevenPhoto.jpg'/></author><thr:total>0</thr:total></entry></feed>