<?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>inheritance in java - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/inheritance-in-java/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/inheritance-in-java/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Wed, 15 Sep 2021 07:21:55 +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>inheritance in java - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/inheritance-in-java/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Tarun works all night long writing code and writing more and more classes for each object he now thinks that he can write a superclass which defines some hierarchical feature for other classes, what can he use ?</title>
		<link>https://www.wikitechy.com/interview-questions/programming/tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:19:40 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[inheritance definition]]></category>
		<category><![CDATA[inheritance in java]]></category>
		<category><![CDATA[Most Asked Sapient Nitro Interview Questions]]></category>
		<category><![CDATA[oops concepts]]></category>
		<category><![CDATA[oops concepts in java]]></category>
		<category><![CDATA[oops interview questions]]></category>
		<category><![CDATA[oops interview questions and answers]]></category>
		<category><![CDATA[oops interview questions c++]]></category>
		<category><![CDATA[oops interview questions in java]]></category>
		<category><![CDATA[oops practical interview questions c#]]></category>
		<category><![CDATA[oops tricky interview question]]></category>
		<category><![CDATA[oops tricky interview questions c#]]></category>
		<category><![CDATA[Tarun works all night long writing code]]></category>
		<category><![CDATA[Tarun works all night long writing code and writing more]]></category>
		<category><![CDATA[Tarun works all night long writing code and writing more and more classes]]></category>
		<category><![CDATA[write a superclass which defines some hierarchical feature]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2569</guid>

					<description><![CDATA[Answer : C. Inheritance]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink" style="text-align: justify;">Tarun works all night long writing code and writing more and more classes for each object he now thinks that he can write a superclass which defines some hierarchical feature for other classes, what can he use ?</p>
<div class="row" style="text-align: justify;">
<div class="col-sm-6">
<p>A. Cascading</p>
</div>
<div class="col-sm-6">
<p>B. Hierarchical super positioning</p>
</div>
<div class="col-sm-6">
<p>C. Inheritance</p>
</div>
<div class="col-sm-6">
<p>D. Polymorphism</p>
</div>
</div>
</div>
</div>
<h3 id="answer-c-inheritance" style="text-align: justify;"><b>Answer : </b>C. Inheritance</h3>
<div class="subheading" style="text-align: justify;">
<h2 id="explanation">Explanation :</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="text-align: justify;">In object-oriented programming, inheritance is that the mechanism of basing an object or category upon another object (prototypical inheritance) or category (class-based inheritance), holding similar implementation.</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/tarun-works-all-night-long-writing-code-and-writing-more-and-more-classes-for-each-object-he-now-thinks-that-he-can-write-a-superclass-which-defines-some-hierarchical-feature-for-other-classes-what-c/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Palak enters a coding competition she wants to write code to pass down values from one class to another. Which of following concept should she use to do so ?</title>
		<link>https://www.wikitechy.com/interview-questions/programming/palak-enters-a-coding-competition-she-wants-to-write-code-to-pass-down-values-from-one-class-to-another-which-of-following-concept-should-she-use-to-do-so/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/palak-enters-a-coding-competition-she-wants-to-write-code-to-pass-down-values-from-one-class-to-another-which-of-following-concept-should-she-use-to-do-so/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:15:30 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[abstract class interview questions c#]]></category>
		<category><![CDATA[abstract keyword in java]]></category>
		<category><![CDATA[abstraction in java]]></category>
		<category><![CDATA[abstraction interview questions and answers for experienced]]></category>
		<category><![CDATA[c++ friend class]]></category>
		<category><![CDATA[extend function python]]></category>
		<category><![CDATA[implements keyword in java]]></category>
		<category><![CDATA[inheritance in c++]]></category>
		<category><![CDATA[inheritance in c++ with example program]]></category>
		<category><![CDATA[inheritance in java]]></category>
		<category><![CDATA[interface in java]]></category>
		<category><![CDATA[java extends example]]></category>
		<category><![CDATA[javascript extend function prototype]]></category>
		<category><![CDATA[javascript extend object]]></category>
		<category><![CDATA[jquery extend function]]></category>
		<category><![CDATA[Most Asked Sapient Nitro Interview Questions]]></category>
		<category><![CDATA[Palak enters a coding competition]]></category>
		<category><![CDATA[Palak enters a coding competition she wants to write code to pass down values]]></category>
		<category><![CDATA[Palak enters a coding competition she wants to write codewhat is abstraction]]></category>
		<category><![CDATA[polymorphism in java]]></category>
		<category><![CDATA[super keyword in java]]></category>
		<category><![CDATA[types of inheritance in java]]></category>
		<category><![CDATA[what is extend function]]></category>
		<category><![CDATA[write code to pass down values from one class to another]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2567</guid>

					<description><![CDATA[Answer : C. Extends]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink">Palak enters a coding competition she wants to write code to pass down values from one class to another. Which of following concept should she use to do so ?</p>
<div class="row">
<div class="col-sm-6">
<p>A. Inherits</p>
</div>
<div class="col-sm-6">
<p>B. Extends</p>
</div>
<div class="col-sm-6">
<p>C. Construct</p>
</div>
<div class="col-sm-6">
<p>D. All of the mentioned</p>
</div>
</div>
</div>
</div>
<h3 id="answer-c-extends"><b>Answer : </b>C. Extends</h3>
<div class="subheading">
<h2 id="explanation">Explanation:</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>A class in Java can extend another class to become a subclass. When class B extends the class A, B becomes subclass (child) and A becomes superclass (parent). A subclass can reuse all the features of the parent class and code reuse is a major reason for extending a class</li>
</ul>
</div>
</div>
<div class="text-center row">
<div class="col-sm-12"></div>
</div>
<div class="ImageContent">
<div class="hddn"><img decoding="async" class="img-responsive center-block" src="https://cdn.wikitechy.com/interview-questions/programming/inheritance-in-java.jpg" alt="Inheritance in Java" /></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/palak-enters-a-coding-competition-she-wants-to-write-code-to-pass-down-values-from-one-class-to-another-which-of-following-concept-should-she-use-to-do-so/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
