+ 2

Plzzz make d program or just write d syntax...

Write the ticket class. Create an object of ticket class. Call its setmoney() function. Check the balance with a call to getbalance(). Now call setmoney() and getbalance() again to ensure that the new balance is the sum of the two amounts passed to the two calls to settmoney().

20th May 2018, 7:56 AM
Harsh Agrawal
Harsh Agrawal - avatar
7 Respuestas
+ 10
Harsh Agrawal At least provide your attempts. Show your effort at solving the problem.
20th May 2018, 8:05 AM
Hatsy Rei
Hatsy Rei - avatar
+ 3
nope nobodies doing your homework
20th May 2018, 8:01 AM
᠌᠌Code X
᠌᠌Code X - avatar
+ 1
Is this an assigment? What have you done so far? You will learn more if you try to figure out the answer first, and we can guide you in the right direction based on what you've got so far..
20th May 2018, 8:02 AM
Øistein Hauge
+ 1
Brains n Øistein Hauge no i dont hve a idea to do this so plzzzz help me if u nt want to write a program den just write a syntax so it may help me to write dis program so plzzz...............
20th May 2018, 8:04 AM
Harsh Agrawal
Harsh Agrawal - avatar
0
Google java getters and setters, and read about encapsulation. This will show you the basic structures..
20th May 2018, 8:07 AM
Øistein Hauge
0
come on are you trying to be funny or what??
20th May 2018, 11:58 AM
MasterVan
MasterVan - avatar
- 2
wt d hell yrrrr just i need d syntax plzzz ... plz........ plzz..... plzzz.... plzzzz. plzzzzz
20th May 2018, 8:18 AM
Harsh Agrawal
Harsh Agrawal - avatar