<?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>What is not inherited in Java - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/what-is-not-inherited-in-java/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/what-is-not-inherited-in-java/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Fri, 03 Sep 2021 07:21:43 +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>What is not inherited in Java - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/what-is-not-inherited-in-java/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Which of the following cannot be inherited ?</title>
		<link>https://www.wikitechy.com/interview-questions/programming/which-of-the-following-cannot-be-inherited/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/which-of-the-following-cannot-be-inherited/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:23:45 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[c interview questions]]></category>
		<category><![CDATA[c programming questions and answers]]></category>
		<category><![CDATA[c programming theory questions and answers]]></category>
		<category><![CDATA[c programming viva questions and answers]]></category>
		<category><![CDATA[c# What type of classes cannot be inherited in .NET]]></category>
		<category><![CDATA[c++ what we cannot inherit from a Base class]]></category>
		<category><![CDATA[coding interview questions]]></category>
		<category><![CDATA[interview questions to ask a computer programmer]]></category>
		<category><![CDATA[java interview questionsc programming interview questions and answers with explanations]]></category>
		<category><![CDATA[Most Asked Sapient Nitro Interview Questions]]></category>
		<category><![CDATA[Prevent class inheritance in C++]]></category>
		<category><![CDATA[programming interview questions and answers]]></category>
		<category><![CDATA[programming interview questions c#]]></category>
		<category><![CDATA[programming interview questions java]]></category>
		<category><![CDATA[programming technical interview questionsc programming interview questions and answers]]></category>
		<category><![CDATA[what is not inherited in c++]]></category>
		<category><![CDATA[What is not inherited in Java]]></category>
		<category><![CDATA[which class cannot be inherited in java]]></category>
		<category><![CDATA[Which class that cannot be inherited]]></category>
		<category><![CDATA[Which members are not inherited in a child class]]></category>
		<category><![CDATA[which of the following can be inherited by a derived class from a base class]]></category>
		<category><![CDATA[Which of the following cannot be inherited form base class]]></category>
		<category><![CDATA[Which of the following cannot be inherited from the base class]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2571</guid>

					<description><![CDATA[Answer : C. Destructor]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink">Which of the following cannot be inherited ?</p>
<div class="row">
<div class="col-sm-6">
<p>A. Friend</p>
</div>
<div class="col-sm-6">
<p>B. Static</p>
</div>
<div class="col-sm-6">
<p>C. Destructor</p>
</div>
<div class="col-sm-6">
<p>D. Constructor</p>
</div>
</div>
</div>
</div>
<h3 id="answer-c-destructor"><b>Answer : </b>C. Destructor</h3>
<div class="subheading">
<h2 id="explanation">Explanation :</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li><b>Friend Class</b> &#8211; A friend class can access private and protected members of other class in which it is declared as friend. It is sometimes useful to allow a particular class to access private members of other class.</li>
<li><b>Constructor</b> &#8211; A constructor is a member function of a class which initializes objects of a class. In C++, Constructor is automatically called when object (instance of class) create. It is special member function of the class.</li>
<li><b>Static</b> &#8211; Static categories are sealed and thus can&#8217;t be transmissible. They can not inherit from any category except Object. Static categories cannot contain associate instance constructor. but, they will have a static builder.</li>
<li><b>Destructor</b> &#8211; Destructor is a member function which destructs or deletes an object.</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/which-of-the-following-cannot-be-inherited/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
