Q.1 Suppose you have a Piggie Bank with an initial amount of $50 and you have
to add some more amount to it. Create a class 'AddAmount' with a data member
named 'amount' with an initial value of $50. Now make two constructors of this
class as follows:
1 - without any parameter - no amount will be added to the Piggie Bank
2 - having a parameter which is the amount that will be added to the Piggie Bank
Create an object of the 'AddAmount' class and display the final amount in the
Piggie Bank.
Answers
Answered by
0
Explanation:
Question 2: Is there a room in your house or a house in your neighbourhood/locality where you would rather not go alone, and never at night? If there is such a place and a story to go with it, let others hear all about it. Answer: Yes, there is a room in my house where I do not go alone and never at night.
Similar questions