<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Function Overloading &amp; Operator Overloading by </title>
      <link>https://padlet.com/suhailclassroom2020/dmtyj0f34zg678to</link>
      <description>Polymorphism</description>
      <language>en-us</language>
      <pubDate>2020-07-14 07:18:44 UTC</pubDate>
      <lastBuildDate>2023-05-21 17:12:31 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>Function Overloading</title>
         <author>suhailclassroom2020</author>
         <link>https://padlet.com/suhailclassroom2020/dmtyj0f34zg678to/wish/653986862</link>
         <description><![CDATA[<div><strong>Function overloading allows a class to have several methods with the same method name but with different arguments or parameters or signatures.<br></strong><br></div><div><strong>It is a form of compile time Polymorphism</strong></div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/647949641/97900a4aa5106da16e477587c989af58/FUNO.CPP" />
         <pubDate>2020-07-14 07:46:39 UTC</pubDate>
         <guid>https://padlet.com/suhailclassroom2020/dmtyj0f34zg678to/wish/653986862</guid>
      </item>
      <item>
         <title>Operator overloading</title>
         <author>suhailclassroom2020</author>
         <link>https://padlet.com/suhailclassroom2020/dmtyj0f34zg678to/wish/653989384</link>
         <description><![CDATA[<div><strong>C++ allows you to specify more than one definition for an operator in the same scope, which is called  operator overloading.</strong></div>]]></description>
         <enclosure url="" />
         <pubDate>2020-07-14 07:51:28 UTC</pubDate>
         <guid>https://padlet.com/suhailclassroom2020/dmtyj0f34zg678to/wish/653989384</guid>
      </item>
      <item>
         <title>List of Operator Overloaded that cannot be overloaded</title>
         <author>suhailclassroom2020</author>
         <link>https://padlet.com/suhailclassroom2020/dmtyj0f34zg678to/wish/653997672</link>
         <description><![CDATA[<div><strong>"."         Member access or dot operator<br>"?:”       Ternary or conditional operator<br>"::"        Scope resolution operator<br>".*"        Pointer to member operator<br>"sizeof"  Size of operator</strong></div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2020-07-14 08:09:41 UTC</pubDate>
         <guid>https://padlet.com/suhailclassroom2020/dmtyj0f34zg678to/wish/653997672</guid>
      </item>
      <item>
         <title>Unary Operator overloading</title>
         <author>suhailclassroom2020</author>
         <link>https://padlet.com/suhailclassroom2020/dmtyj0f34zg678to/wish/654000253</link>
         <description><![CDATA[<div><strong>Let us consider unary minus operator. A minus operator when used as a unary takes just one operand. We know that this operator changes the sign of an operand when applied to a basic data item. Unary minus when applied to an object it will change the sign of each data item in the object.<br></strong><br></div><div>            Unary overloaded operator functions can be called by expressions such as </div><div>                       <strong> op x or x op </strong></div><div>where </div><div>                       <strong> op – operator </strong></div><div><strong>                        x – object<br><br></strong><strong><mark>Sample Code</mark></strong><strong>:</strong></div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/647949641/90fc31dc952e2f91daee39fcb29c1070/UNARYOV.CPP" />
         <pubDate>2020-07-14 08:15:10 UTC</pubDate>
         <guid>https://padlet.com/suhailclassroom2020/dmtyj0f34zg678to/wish/654000253</guid>
      </item>
      <item>
         <title>Binary Operator Overloading</title>
         <author>suhailclassroom2020</author>
         <link>https://padlet.com/suhailclassroom2020/dmtyj0f34zg678to/wish/654001575</link>
         <description><![CDATA[<div><strong>Like unary operator overloading we can overload binary operator. In binary operator overloading we involve two objects along with an operator. In our example, we overload binary plus operator. Here in this method, we can add data items of the objects involved in the expression. Binary overloaded operator functions can be called by expressions given below:</strong></div><div>                                    <strong>X op Y</strong></div><div><strong>            </strong>Where</div><div>                                  <strong>  op – operator</strong></div><div><strong>                                    X, Y – objects<br></strong><strong><mark>Sample Code:</mark></strong></div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/647949641/e5a2fc4bb9684237f249ec26ac9bb423/BINOVER.CPP" />
         <pubDate>2020-07-14 08:18:02 UTC</pubDate>
         <guid>https://padlet.com/suhailclassroom2020/dmtyj0f34zg678to/wish/654001575</guid>
      </item>
      <item>
         <title>operator overloaded function Syntax:</title>
         <author>suhailclassroom2020</author>
         <link>https://padlet.com/suhailclassroom2020/dmtyj0f34zg678to/wish/654003102</link>
         <description><![CDATA[<div><strong><mark>return-type operator op(parameters)<br>{<br>   //body of the function<br>   ...<br>}</mark></strong></div>]]></description>
         <enclosure url="" />
         <pubDate>2020-07-14 08:21:22 UTC</pubDate>
         <guid>https://padlet.com/suhailclassroom2020/dmtyj0f34zg678to/wish/654003102</guid>
      </item>
      <item>
         <title>Rules for Operator Overloading</title>
         <author>suhailclassroom2020</author>
         <link>https://padlet.com/suhailclassroom2020/dmtyj0f34zg678to/wish/654005587</link>
         <description><![CDATA[<div><br>There are some rules for the operator overloading. These rules are like below<br><br></div><ul><li><strong>Only built-in operators can be overloaded. If some operators are not present in C++, we cannot overload them.<br></strong><br></li><li><strong>The arity of the operators cannot be changed<br></strong><br></li><li><strong>The precedence of the operators remains same.<br></strong><br></li><li><strong>The overloaded operator cannot hold the default parameters except function call operator “()”.<br></strong><br></li><li><strong>We cannot overload operators for built-in data types. At least one user defined data types must be there.<br></strong><br></li><li><strong>The assignment “=”, subscript “[]”, function call “()” and arrow operator “-&gt;” these operators must be defined as member functions, not the friend functions.<br></strong><br></li><li><strong>Some operators like assignment “=”, address “&amp;” and comma “,” are by default overloaded. </strong></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2020-07-14 08:26:33 UTC</pubDate>
         <guid>https://padlet.com/suhailclassroom2020/dmtyj0f34zg678to/wish/654005587</guid>
      </item>
   </channel>
</rss>
