<?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>difference between private and protected in c++ with example - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/difference-between-private-and-protected-in-c-with-example/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/difference-between-private-and-protected-in-c-with-example/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Mon, 20 Sep 2021 10:51:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>difference between private and protected in c++ with example - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/difference-between-private-and-protected-in-c-with-example/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Data and function in which area of a class are directly accessible outside the class ?</title>
		<link>https://www.wikitechy.com/interview-questions/programming/data-and-function-in-which-area-of-a-class-are-directly-accessible-outside-the-class/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/data-and-function-in-which-area-of-a-class-are-directly-accessible-outside-the-class/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:42:18 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[access specifiers in c++ with example]]></category>
		<category><![CDATA[access specifiers in c++ with example program]]></category>
		<category><![CDATA[access specifiers in c++ with examples]]></category>
		<category><![CDATA[AMCAT Previous Papers with Solutions]]></category>
		<category><![CDATA[c++ protected friend]]></category>
		<category><![CDATA[Data and function in which area of a class are directly accessible]]></category>
		<category><![CDATA[difference between private and protected in c++ with example]]></category>
		<category><![CDATA[difference between private and protected inheritance in c++]]></category>
		<category><![CDATA[difference between private public and protected access specifiers in c++]]></category>
		<category><![CDATA[difference between public and private data members]]></category>
		<category><![CDATA[difference between public private and protected in c++ with example]]></category>
		<category><![CDATA[difference between public private and protected inheritance in c++]]></category>
		<category><![CDATA[Explain public]]></category>
		<category><![CDATA[In which area of a class are data and function directly accessible]]></category>
		<category><![CDATA[inheritance in c++]]></category>
		<category><![CDATA[protected in c++ with example]]></category>
		<category><![CDATA[public private protected c++]]></category>
		<category><![CDATA[public private protected inheritance in c++]]></category>
		<category><![CDATA[public private protected java]]></category>
		<category><![CDATA[sprotected in c++ with example]]></category>
		<category><![CDATA[visibility modes in c++]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2586</guid>

					<description><![CDATA[Answer : A. Public]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink">Data and function in which area of a class are directly accessible outside the class ?</p>
<div class="row">
<div class="col-sm-6">
<p>A. Public</p>
</div>
<div class="col-sm-6">
<p>B. Private</p>
</div>
<div class="col-sm-6">
<p>C. Protected</p>
</div>
<div class="col-sm-6">
<p>D. None of these</p>
</div>
</div>
</div>
</div>
<h3 id="answer-a-public"><b>Answer : </b>A. Public</h3>
<div class="subheading">
<h2 id="explanation">Explanation :</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li><b>Public</b> &#8211; The members declared as Public are accessible from outside the Class through an object of the class.</li>
<li><b>Protected</b> &#8211; The members declared as Protected are accessible from outside the class but only in a class derived from it.</li>
<li><b>Private</b> &#8211; These members are only accessible from within the class. No outside Access is allowed</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/data-and-function-in-which-area-of-a-class-are-directly-accessible-outside-the-class/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
