mention five states and two methods for the following classes class
a. class employee
b. class bank
c. class school
d. class book
d. class computer
e. class camera
Answers
Answer:
Explanation:
These classes will have to write in JAVA program
Answer:
Explanation:
Mention five states (characteristics) and two methods for the following Classes:
(a) Class Employee
Answer
Characteristics Methods
Name computeSalary()
Employee Number computeTax()
Pan Number
Salary
Income Tax
(b) Class Bank
Answer
Characteristics Methods
Bank Name openAccount()
Bank Address depositMoney()
IFSC Code
MICR Code
Accounts
(c) Class School
Answer
Characteristics Methods
School Name admitStudent()
School Address conductExams()
Classes
Students
Teachers
(d) Class Book
Answer
Characteristics Methods
Book Name buyBook()
ISBN Number readBook()
Price
Author
Publisher
(e) Class Park
Answer
Characteristics Methods
Park Name openPark()
Park Address closePark()
Ticket Price
Opening Time
Closing Time
(f) Class Medicine
Answer
Characteristics Methods
Name buyMedicine()
Quantity sellMedicine()
Manufacturing Date
Expiry Date
Price
(g) Class Computer
Answer
Characteristics Methods
Model startComputer()
Serial Number shutdownComputer()
Processor
RAM
Hard Disk
(h) Class Camera
Answer
Characteristics Methods
Model takePicture()
Serial Number adjustZoom()
Colour
Price
Resolution