Computer Science, asked by Anonymous, 4 months ago



Design a class OmniBus with following description:
Instance variables/data members :
String name : To store the name of the customer
int seat_no : To store the seat number
long phone : To store customer’s mobile number

int amt : To store basic amount of ticket
int total amt : To store the amount to be paid after updating the original amount
Member methods :
void accept () – To take input for name, seat no, phone number and amount.
void update () – To increase the ticket amount by Rs 20- for all seats because of rise in petrol charges.
(extra amount to be added in the amount as follows)
void display () – To display all details of the passenger such as name, seat no,, total amount and phone number.
Write a main method to create an object of the class and call the above member methods. void display () – To display all details of a customer such as name, seat no, total amount and phone number.

Answers

Answered by MrsShiftless
15

Answer:

itna bada question

meri question read karne ki capacity nahi hai

Answered by darksoul3
0

“You're braver than you believe, and stronger than you seem, and smarter than you think

Similar questions