Click here to Skip to main content
14,693,616 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Q.1]Define a class ‘BankAccount’ having data members: acc_no, name and balance. Define appropriate methods to initialize and display the values of these data members. Input values for two objects and determine who is having more balance in his/her account

What I have tried:

not tried being new to java object oriented programming
Updated 6-Oct-20 2:20am

not tried being new to java object oriented programming

Homework is here for your training/practicing abd is about applying courses and lessons you been taught.
By not trying anything, you will remain new and clueless.
trial and error is a good learning technique, but you have to try.

Here we help you to fix you code, we don't do your homework.
CPallini 6-Oct-20 3:23am
5. Tell them, tell them.
Patrice T 6-Oct-20 3:28am
Thank you

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900