 




<?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>IT Answers &#187; OOPS</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/oops/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Sun, 26 May 2013 01:32:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>OOPS fundamentals test by IKM</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/oops-fundamentals-test-by-ikm/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/oops-fundamentals-test-by-ikm/#comments</comments>
		<pubDate>Sun, 03 Feb 2013 16:16:21 +0000</pubDate>
		<dc:creator>manu917</dc:creator>
				<category><![CDATA[IKM]]></category>
		<category><![CDATA[OOPS]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/oops-fundamentals-test-by-ikm/</guid>
		<description><![CDATA[New Answer by Michael Tidmarsh]]></description>
				<content:encoded><![CDATA[New Answer by Michael Tidmarsh]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/oops-fundamentals-test-by-ikm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A real-world C++ problem</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/a-real-world-problem/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/a-real-world-problem/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 06:01:19 +0000</pubDate>
		<dc:creator>Wyasser</dc:creator>
				<category><![CDATA[C]]></category>
		<category><![CDATA[OOPS]]></category>
		<category><![CDATA[Software development]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[A Real world Problem: This is a business rule of a bank that the Balance of customer must always be Positive, Further that it is also a business rule that a customer can not withdraw amount greater than his/her current balance. Question statement You are required to write a C++ program to solve this real [...]]]></description>
				<content:encoded><![CDATA[<p>A Real world Problem:</p>
<p>This is a business rule of a bank that the Balance of customer must always be Positive,<br />
Further that it is also a business rule that a customer can not withdraw amount greater than his/her current balance.</p>
<p>Question statement</p>
<p>You are required to write a C++ program to solve this real world problem, using Exception Handling.</p>
<p>Your program should consist of a class Customer and 4 instance variables. Cust_name, Cust_AC_No, Cust_balance, Amount_withdraw.</p>
<p>Cust_name             :  Customer Name<br />
Cust_AC_No         : Customer Account Number<br />
Cust_balance          : Customer Balance<br />
Amount_withdraw : Amount that is to be withdraw</p>
<p>The class should further consists of getter and setter function for each instance variable.<br />
The setter function of Cust_balance consists of a try and a catch block, if the user enters the balance less than zero (means negative, which is not possible) then this function should throw an exception, and its corresponding catch block should handle this exception by providing another opportunity to the user to enter the balance again.</p>
<p>Similarly the setter of Amount_withdraw variable should also have a try and a catch blocks. If the user enters the withdraw amount greater than the current balance then this function should throw an exception, and its corresponding catch block should handle this exception.<br />
In main function just declare an object of Customer class and call all its setter and getter functions</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/a-real-world-problem/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/16 queries in 0.023 seconds using memcached
Object Caching 371/406 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-26 09:36:35 -->