Define a class Phone Bill with the following descriptions:
Data members:
customerName of type character array
phone Number of type long
no_of_units of type int
of type int
of type float.
rent
amount
Answers
Answered by
1
Answer: The required code in JAVA :-
class PhoneBill {
char[] customerName = new char[20];
long phoneNumber;
int no_of_units;
int rent;
float amount;
}
Please mark it as Brainliest.
Similar questions