Mention three characteristics and two methods for the following Classes: (a) class Mobile Phone (b) class Bike (c) class Fruits (d) class Pen

Short Answer
Views 27

Answer:

(a) class Mobile Phone

Characteristics Methods
colour makeCall()
model receiveCall()
IMEI Number  

(b) class Bike

Characteristics Methods
colour startEngine()
model stopEngine()
Registration Number  

(c) class Fruits

Characteristics Methods
name buy()
quantity sell()
cost  

(d) class Pen

Characteristics Methods
name write()
type refill()
Company  

Related Articles:

This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.

Join Our telegram group to ask Questions

Click below button to join our groups.