1. Define an Object with an example, 2. Mention five states (characteristics) and two methods for the following Clas, (a) class Employee (b) class Bank (c) class School (d) class Book (e) class Park () class Medicine (g) class Computer (h) class Camera
Answers
Answered by
0
Answer:
Answer number 1 -
An object is an entity having a specific identity, specific characteristics and specific behavior. Taking a car as an example of an object, it has characteristics like colour, model, version, registration number, etc. It has behaviours like start the engine, stop the engine, accelerate the car, apply the brakes, etc.
Answer number 2 -
Characteristics Methods
MethodsName computeSalary()
computeSalary()Employee Number computeTax()
computeTax()Pan Number
Salary
Salary Income Tax
Similar questions