what if you tried adding stock to the vending machine ?
@xVarga3 жыл бұрын
why is the constructor necessary here? cant we just declare the depositedAmount field as 0 without using a constructor?
@kgwack7 жыл бұрын
Why don't you use depositedAmount += coinAmount inside DepositCoin method so that the coin insertion is accumulated?
@RandomPlaceHolderName6 жыл бұрын
Mhmm. Clearly states the method should add.
@dogusural57929 жыл бұрын
Great video as always :) Thank you.
@gamerdarkness70218 жыл бұрын
can u code an exercise for me
@jordanrussell55028 жыл бұрын
how would i do this in a form, i need to have buttons for each entity instead of it being in a console
@Dreadric7910 жыл бұрын
Good work as always. Could you do a program that calculates take home pay of an hourly and or salaried employee? Ive got this type of problem for an assignment and the switch statement is really screwing me up. I dont know if I should keep it in main() or put it in class ABC. It would be much appricated.