Encapsulation with getter/setter

Java Easy 7 views
Back to Questions
Next Constructor overloading Easy N

Problem Description

Task: create a class Account with private balance and methods deposit/withdraw.

Input Format

Java method

Output Format

Return value

Constraints

Do not allow negative balance.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Next