<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>oops Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/oops/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/oops/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Thu, 02 Sep 2021 13:16:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Tutorial for Polymorphism in OOPS</title>
		<link>https://www.scmgalaxy.com/tutorials/tutorial-for-polymorphism-in-oops/</link>
					<comments>https://www.scmgalaxy.com/tutorials/tutorial-for-polymorphism-in-oops/#respond</comments>
		
		<dc:creator><![CDATA[Ashwani Kumar]]></dc:creator>
		<pubDate>Thu, 02 Sep 2021 13:16:06 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[benefits of Polymorphism]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[oops]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Polymorphism]]></category>
		<category><![CDATA[Polymorphism in OOPS]]></category>
		<category><![CDATA[The benefits of Polymorphism are:]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Tutorial for Polymorphism in OOPS]]></category>
		<category><![CDATA[What is Polymorphism]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8655</guid>

					<description><![CDATA[<p>What is Polymorphism? Polymorphism, as its name implies, comes in a variety of forms. OOP allows for the use of a [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/tutorial-for-polymorphism-in-oops/">Tutorial for Polymorphism in OOPS</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">What is <strong>Polymorphism</strong>?</h3>



<p class="wp-block-paragraph">Polymorphism, as its name implies, comes in a variety of forms. OOP allows for the use of a variety of techniques I. Simply expressed, they have to do with how methods are used, and how different methods operate for different objects. Method Overriding and Method Overloading are two ways that polymorphic methods allow for different actions to be done.</p>



<p class="wp-block-paragraph"><strong>The benefits of Polymorphism are:</strong></p>



<ul class="wp-block-list"><li>Objects of different types can be passed through the same interface</li><li>Method overriding</li><li>Method overloading</li></ul>



<p class="wp-block-paragraph"><strong>Method Overriding</strong>:- Overriding is used in the polymorphism of runtime. By overriding a parent class&#8217;s method, a child class can implement a different method. In the case of our dogs, we may prefer a specific type of bark that is distinct from the generic type of dog (<code><span class="has-inline-color has-vivid-red-color">TrackingDog</span></code>).</p>



<p class="wp-block-paragraph"><strong>Example:-</strong></p>



<script src="https://gist.github.com/AdarshAshwani/2f14c51fb9288cff503e2f683a4a540b.js"></script>



<div class="wp-block-image"><figure class="aligncenter is-resized"><img fetchpriority="high" decoding="async" src="https://www.devopsschool.com/blog/wp-content/uploads/2021/05/image-61.png" alt="" width="443" height="369"/><figcaption>TrackingDog’s overriding the bark() method</figcaption></figure></div>



<p class="wp-block-paragraph"><strong>Method Overloading</strong>:- Overloading is used at the polymorphic build time. Although methods and functions may have the same name, the call method has its own set of arguments. Different results may be obtained depending on the number of parameters entered.</p>



<p class="wp-block-paragraph"><strong>Example</strong>:- There are no parameters supplied to the <code><span class="has-inline-color has-vivid-red-color">updateAttendance()</span></code> method. The count will be added one day. When the <code><span class="has-inline-color has-vivid-red-color">updateAttendance(4)</span></code> argument is used, the x <code><span class="has-inline-color has-vivid-red-color">xupdateAttendance(x)</span></code> parameter is used, and four days are added to the total.</p>



<script src="https://gist.github.com/AdarshAshwani/5a4dc586be245a338a81b7127ea425c9.js"></script>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/tutorial-for-polymorphism-in-oops/">Tutorial for Polymorphism in OOPS</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/tutorial-for-polymorphism-in-oops/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Tutorial for Abstraction in OOPS</title>
		<link>https://www.scmgalaxy.com/tutorials/tutorial-for-abstraction-in-oops/</link>
					<comments>https://www.scmgalaxy.com/tutorials/tutorial-for-abstraction-in-oops/#respond</comments>
		
		<dc:creator><![CDATA[Ashwani Kumar]]></dc:creator>
		<pubDate>Thu, 02 Sep 2021 13:00:08 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Abstraction]]></category>
		<category><![CDATA[Abstraction in OOPS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Object-oriented programming]]></category>
		<category><![CDATA[oops]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[the Function of Abstraction?]]></category>
		<category><![CDATA[Tutorial for Abstraction in OOPS]]></category>
		<category><![CDATA[What is]]></category>
		<category><![CDATA[What is the Function of Abstraction]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8645</guid>

					<description><![CDATA[<p>What is Abstraction? Abstraction in OOP allows information/access about how codes are applied to be concealed, allowing just the required [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/tutorial-for-abstraction-in-oops/">Tutorial for Abstraction in OOPS</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">What is <strong>Abstraction</strong>?</h3>



<div class="wp-block-image"><figure class="aligncenter"><img decoding="async" src="https://images.slideplayer.com/26/8597046/slides/slide_2.jpg" alt="Basics of Computation Theory. What is &quot;abstraction&quot;? Abstraction unifies  multiple and different objects into one concept  describes the common  properties. - ppt download"/></figure></div>



<p class="wp-block-paragraph">Abstraction in OOP allows information/access about how codes are applied to be concealed, allowing just the required access. These details may be found in the object definitions. A famous example is the counting approach that works with list items. One thing to keep in mind is that, given the same OOP concept, all Python I data types and structures are objects. In this sense, a list is a class that has methods for completing tasks.</p>



<div class="wp-block-image"><figure class="aligncenter"><img decoding="async" src="https://cdn.journaldev.com/wp-content/uploads/2019/09/abstraction.png" alt="What is Abstraction in OOPS? - JournalDev"/></figure></div>



<h3 class="wp-block-heading"><strong>What is the Function of <strong>Abstraction</strong>?</strong></h3>



<p class="wp-block-paragraph"><strong>Abstraction use simpler high-level instruments to get access to a complex object:</strong></p>



<ul class="wp-block-list"><li>Using simple things to represent complexity</li><li>Hide complex details from user</li></ul>



<div class="wp-block-image"><figure class="aligncenter"><img decoding="async" src="https://i.ytimg.com/vi/1eSCCQPBqP0/maxresdefault.jpg" alt="JavaScript ES7 OOP. Abstraction. Class. #1 - YouTube"/></figure></div>



<p class="wp-block-paragraph">Abstraction also serves a significant security role. We only present selected data items and provide data access via classes and methods to protect the data from being exposed. In the case of an automobile, an open gas tank would make it impossible to continue driving.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" width="608" height="547" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/Tutorial-for-Abstraction-in-OOPS.jpg" alt="" class="wp-image-8651" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/Tutorial-for-Abstraction-in-OOPS.jpg 608w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/Tutorial-for-Abstraction-in-OOPS-300x270.jpg 300w" sizes="(max-width: 608px) 100vw, 608px" /></figure></div>



<p class="wp-block-paragraph"><strong>There are some benefits of abstraction which is mention below:</strong></p>



<ul class="wp-block-list"><li>Simple, high level user interfaces</li><li>Complex code is hidden</li><li>Security</li><li>Easier software maintenance</li><li>Code updates rarely change abstraction</li></ul>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/tutorial-for-abstraction-in-oops/">Tutorial for Abstraction in OOPS</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/tutorial-for-abstraction-in-oops/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Tutorial for Inheritance in OOPS</title>
		<link>https://www.scmgalaxy.com/tutorials/tutorial-for-inheritance-in-oops/</link>
					<comments>https://www.scmgalaxy.com/tutorials/tutorial-for-inheritance-in-oops/#respond</comments>
		
		<dc:creator><![CDATA[Ashwani Kumar]]></dc:creator>
		<pubDate>Wed, 01 Sep 2021 13:13:35 +0000</pubDate>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Function of Inheritance]]></category>
		<category><![CDATA[Inheritance]]></category>
		<category><![CDATA[Object-oriented programming]]></category>
		<category><![CDATA[oops]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[php tutorial]]></category>
		<category><![CDATA[what is Inheritance]]></category>
		<category><![CDATA[What is the Function of Inheritance]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8623</guid>

					<description><![CDATA[<p>what is Inheritance? In OOP, the concept of inheritance allows a class to accept or have the properties of another class [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/tutorial-for-inheritance-in-oops/">Tutorial for Inheritance in OOPS</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">what is <strong>Inheritance</strong>?</h3>



<p class="wp-block-paragraph">In OOP, the concept of inheritance allows a class to accept or have the properties of another class (inherited). A sub-class or derived class is a class that inherits the characteristics/methods of another class. Heritage reduces code redundancy, allowing the class to use other class methods without having to rewrite the code. This allows for dynamic programming using the main class&#8217;s methods (also called the parent class). A subclass has the same properties as a primary class, but it can also have additional methods that are either completely independent or not present in the main class.</p>



<h3 class="wp-block-heading"><strong>What is the Function of Inheritance?</strong></h3>



<p class="wp-block-paragraph">Children&#8217;s classes may be built to enhance the parent&#8217;s class functionality and add more characteristics once essential properties and behaviors have been defined in the parent&#8217;s class.</p>



<p class="wp-block-paragraph"><strong>Example:-</strong> </p>



<p class="wp-block-paragraph">This distinction is demonstrated by creating a parent class child class(HerdingDog) (Dog) and then adding a single herd() behaviour.</p>



<p class="wp-block-paragraph">The following code shows how the child class (HerdingDog) inherits a parent class method (bark) (Dog), and the child class adds an extra method herd().</p>



<script src="https://gist.github.com/AdarshAshwani/56dd53858a250d518c8102194f9489c4.js"></script>



<p class="wp-block-paragraph">When the code uses the fluffy.bark() function, the method bark() travels up the child&#8217;s chain to find out where the bark method is declared.</p>



<script src="https://gist.github.com/AdarshAshwani/1b76d5c5645ed236d281b5d1af95eb7e.js"></script>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/tutorial-for-inheritance-in-oops/">Tutorial for Inheritance in OOPS</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/tutorial-for-inheritance-in-oops/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Introduction to Object Oriented Programming in PHP</title>
		<link>https://www.scmgalaxy.com/tutorials/introduction-to-object-oriented-programming-in-php/</link>
					<comments>https://www.scmgalaxy.com/tutorials/introduction-to-object-oriented-programming-in-php/#respond</comments>
		
		<dc:creator><![CDATA[Joydeep M]]></dc:creator>
		<pubDate>Wed, 17 Mar 2021 12:39:18 +0000</pubDate>
				<category><![CDATA[Programming Scripting Languages]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[objects]]></category>
		<category><![CDATA[oops]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Programming]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5592</guid>

					<description><![CDATA[<p>OOPs stands for Object Oriented Programming which is all about creating class and objects. Class serves as a template and [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/introduction-to-object-oriented-programming-in-php/">Introduction to Object Oriented Programming in PHP</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">OOPs stands for Object Oriented Programming which is all about creating class and objects. Class serves as a template and multiple objects can be created using the class.</p>



<p class="wp-block-paragraph">Oops concept reduces code repetition. Classes are templates for creating objects.</p>



<p class="wp-block-paragraph">For an example, if we see a game take it as a Racing game where we will be having multiple cars which will be running there. So in this case either we have to write codes for each car individually or else we can create a class for car and then we can use it multiple times for the other class with that class name.</p>



<figure class="wp-block-image size-large is-style-default"><img decoding="async" width="1024" height="579" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/03/1-3-1024x579.jpg" alt="" class="wp-image-5599" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/03/1-3-1024x579.jpg 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/03/1-3-300x170.jpg 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/03/1-3-768x434.jpg 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/03/1-3.jpg 1429w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<script src="https://gist.github.com/Joydeep-cotocus/910ddc56a403643a574b3a3b24342ab3.js"></script>



<p class="wp-block-paragraph">A class is a self-contained, independent collection of variables and functions which work together to perform one or more specific tasks, while objects are individual instances of a class.</p>



<p class="wp-block-paragraph">We can see an example given below:</p>



<script src="https://gist.github.com/Joydeep-cotocus/fcb16a12f16b40b0906dbd233b5ea540.js"></script>



<p class="wp-block-paragraph">References:</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy"  id="_ytid_92264"  width="640" height="360"  data-origwidth="640" data-origheight="360" src="https://www.youtube.com/embed/jd55b-T6cHs?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;" class="__youtube_prefs__  epyt-is-override  no-lazyload" title="YouTube player"  allow="fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen data-no-lazy="1" data-skipgform_ajax_framebjll=""></iframe>
</div></figure>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/introduction-to-object-oriented-programming-in-php/">Introduction to Object Oriented Programming in PHP</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/introduction-to-object-oriented-programming-in-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
