Computer Science, asked by blaster3000, 6 months ago

write a java program to :-
Design a class Bank with the following description :
Instance Variables / Data members :
int cus_num : to store customer's bank number String name : to store customer's name
long balance : to store account balance
Member methods :
void input : to take input for account number and customer's name
void show : to show details in the following format









can you do it as soon as possible plzzzz.

Answers

Answered by antarachakraborty07
4

Explanation:

class Bank{

int cus_num;

String name;

long balance;

public void input ( int accNum , String cname)

{

cus_num= accNum;

name= cname;

}

void show()

{

System.out.println("Account number : "+cus_num);

System.out.println( " Name : "+ name);

}

}

Similar questions