

<rss version="2.0"
	xmlns:atom="http://www.w3.org/2005/Atom" 
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:admin="http://webns.net/mvcb/"
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
		
	<channel>
		<title>RSS Feeds :: DEVPPL - Forums > Java Forum : Topics : Overloading methods</title>
	<!--<atom:link href="http://www.devppl.com/forum" rel="self" type="application/rss+xml" />-->
		<description>TOGETHER WE ARE THE BEST</description>
		<link>http://www.devppl.com/forum</link>
		<language>en-gb</language>
		<pubDate>Tue, 17 Aug 2004 14:07:13 +0100</pubDate>
		<lastBuildDate>Sat, 21 Nov 2009 13:03:24 +0000</lastBuildDate>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<generator>MSSTI v0.0.1 - (C) 2008 leviatan21 - http://www.mssti.com/</generator>
		<copyright>Copyright : (c) RSS Feeds :: DEVPPL - Tue, 17 Aug 2004 14:07:13 +0100</copyright>
		<dc:creator>webmaster@devppl.com (DEVPPL)</dc:creator>

		<image>
			<title>RSS Feeds :: DEVPPL - Forums > Java Forum : Topics : Overloading methods</title>
			<url>http://www.devppl.com/forum/styles/DEVPPL/imageset/site_logo.gif</url>
			<link>http://www.devppl.com/forum</link>
		</image>
		<ttl>60</ttl>
		
		<item>
			<title>Overloading methods</title>
			<link>http://www.devppl.com/forum/./viewtopic.php?p=46757#p46757</link>
				<description><![CDATA[  Hi, I'm new to this forum and need help with an assignment. Any help
would be appreciated!!!!   This is my assignment:
<br />Modify the methods of the Lunch class you created in the Chapter 2
case projects. Specifically, overload the constructor to take the numbers
of apples, the amount of cheese, and number of loaves as parameters. Also,
use parameters in the mutator method to set new amounts. Finally, return a
value from the calculation method that represents the total price of the
items. Add a display method that calls the calculation method and displays
the total. Test your program by modifying the main()method.
<br />
<br /><span style="font-weight: bold">This is my code:</span> 
<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">
<br />import java.io.*;<br />import java.text.*;<br /> <br />public class
ParameterValue &#123; <br />&nbsp; &nbsp;DecimalFormat df = new
DecimalFormat&#40;"$,###.00"&#41;;&nbsp; &nbsp;<br /> &nbsp; &nbsp;private
double x, y, z, sum;<br />&nbsp; &nbsp;private String s1;<br />&nbsp;
&nbsp;private String s2;<br />&nbsp; &nbsp;private String s3;<br />&nbsp;
&nbsp; <br />&nbsp; &nbsp;public static void main &#40;String&#91;&#93;
args&#41;&#123;<br />&nbsp; &nbsp;ParameterValue pv = new Parame</div>...<p>Statistics : Posted by <a href="http://www.devppl.com/forum/memberlist.php?mode=viewprofile&amp;u=18868">KayR</a> &bull; on Wed Sep 24, 2008 4:06 pm &bull; Replies 0 &bull; Views 344</p><hr />]]></description>
					<content:encoded><![CDATA[  Hi, I'm new to this forum and need help with an assignment. Any help
would be appreciated!!!!   This is my assignment:
<br />Modify the methods of the Lunch class you created in the Chapter 2
case projects. Specifically, overload the constructor to take the numbers
of apples, the amount of cheese, and number of loaves as parameters. Also,
use parameters in the mutator method to set new amounts. Finally, return a
value from the calculation method that represents the total price of the
items. Add a display method that calls the calculation method and displays
the total. Test your program by modifying the main()method.
<br />
<br /><span style="font-weight: bold">This is my code:</span> 
<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">
<br />import java.io.*;<br />import java.text.*;<br /> <br />public class
ParameterValue &#123; <br />&nbsp; &nbsp;DecimalFormat df = new
DecimalFormat&#40;"$,###.00"&#41;;&nbsp; &nbsp;<br /> &nbsp; &nbsp;private
double x, y, z, sum;<br />&nbsp; &nbsp;private String s1;<br />&nbsp;
&nbsp;private String s2;<br />&nbsp; &nbsp;private String s3;<br />&nbsp;
&nbsp; <br />&nbsp; &nbsp;public static void main &#40;String&#91;&#93;
args&#41;&#123;<br />&nbsp; &nbsp;ParameterValue pv = new Parame</div>...]]></content:encoded>
					<category domain="http://www.devppl.com/forum/viewforum.php?f=47"><![CDATA[Java Forum]]></category>
			<dc:creator><![CDATA[18868]]></dc:creator>
			<dc:date>2008-09-24T16:06:37+01:00</dc:date>
			<guid isPermaLink="false">http://www.devppl.com/forum/./viewtopic.php?p=46757#p46757</guid>
		</item>
	
	</channel>
</rss>