<?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>public private protected Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/public-private-protected/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/public-private-protected/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Thu, 07 Oct 2021 11:34:18 +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>PHP OOP : Access Modifier (public, protected,  private)</title>
		<link>https://www.scmgalaxy.com/tutorials/php-access-modifier-public-protected-private/</link>
					<comments>https://www.scmgalaxy.com/tutorials/php-access-modifier-public-protected-private/#respond</comments>
		
		<dc:creator><![CDATA[vikashdev k]]></dc:creator>
		<pubDate>Wed, 06 Oct 2021 10:17:30 +0000</pubDate>
				<category><![CDATA[php]]></category>
		<category><![CDATA[access modifier in php]]></category>
		<category><![CDATA[DevOps Online Training Advantage at scmGalaxy]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Perforce]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Process]]></category>
		<category><![CDATA[public private protected]]></category>
		<category><![CDATA[public private protected in php]]></category>
		<category><![CDATA[public protected privated in php]]></category>
		<category><![CDATA[scmgalaxy]]></category>
		<category><![CDATA[scmGalaxy DevOps Training Online]]></category>
		<category><![CDATA[scmGalaxy Tutorials]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[What]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=9431</guid>

					<description><![CDATA[<p>What is the access modifier? Restrictions on properties and methods. Types of access modifier public protected private Public : Access [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/php-access-modifier-public-protected-private/">PHP OOP : Access Modifier (public, protected,  private)</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 the access modifier?</h3>



<p class="wp-block-paragraph">Restrictions on properties and methods.</p>



<h3 class="wp-block-heading">Types of access modifier</h3>



<ol class="wp-block-list"><li>public </li><li>protected</li><li>private</li></ol>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="869" height="261" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/10/php5-1.png" alt="" class="wp-image-9434" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/10/php5-1.png 869w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/10/php5-1-300x90.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/10/php5-1-768x231.png 768w" sizes="(max-width: 869px) 100vw, 869px" /></figure>



<h3 class="wp-block-heading">Public :</h3>



<ul class="wp-block-list"><li>Access on base as well as derived class and outside of the class.</li><li>Everyone can see and access the data.</li><li>Not secure.</li><li>Override use.</li></ul>



<script src="https://gist.github.com/vikash-cotocus/789dd6d2a9c9ecdf3ae98f65b6c291bc.js"></script>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="556" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/10/php6-1024x556.png" alt="" class="wp-image-9433" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/10/php6-1024x556.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/10/php6-300x163.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/10/php6-768x417.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/10/php6-1536x834.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/10/php6.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading">Protected :</h3>



<ul class="wp-block-list"><li>Base and Derived class.</li><li>No one gets access throughout the class.</li><li>Declare like protected property and method.</li><li>Not use override function.</li><li>Without permission no one can access any of these (properties &amp; method).</li></ul>



<script src="https://gist.github.com/vikash-cotocus/6c778485ea5c726d31e5c2034f96d250.js"></script>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="550" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/10/php7-1024x550.png" alt="" class="wp-image-9435" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/10/php7-1024x550.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/10/php7-300x161.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/10/php7-768x413.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/10/php7-1536x826.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/10/php7.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading">Private :</h3>



<ul class="wp-block-list"><li>Access itself.</li><li>Highly secured.</li><li>No one can access without permission.</li><li>Highly costly.</li></ul>



<script src="https://gist.github.com/vikash-cotocus/6b45c23d0b6390dea21f76522aa40a40.js"></script>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="549" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/10/php8-1024x549.png" alt="" class="wp-image-9436" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/10/php8-1024x549.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/10/php8-300x161.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/10/php8-768x412.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/10/php8-1536x824.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/10/php8.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/php-access-modifier-public-protected-private/">PHP OOP : Access Modifier (public, protected,  private)</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/php-access-modifier-public-protected-private/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
