Professional Documents
Culture Documents
Chapter 1 - Unit 2 - Elementary Concept of Objects and Classes - Solutions For APC Understanding Computer Applications With BlueJ ICSE Class 10 Java Programs - KnowledgeBoat
Chapter 1 - Unit 2 - Elementary Concept of Objects and Classes - Solutions For APC Understanding Computer Applications With BlueJ ICSE Class 10 Java Programs - KnowledgeBoat
keyword new.
Question 7
Question 8
Question 9
Question 10
Question 1
Answer
Question 2
Answer
An object is an entity having a specific
identity, specific characteristics and
specific behavior. A class is a blue print
that represents a set of objects that
share common characteristics and
behaviour. Take the example of a
house. An architect will have the
blueprints for a house. Those
blueprints will be plans that explain
exactly what properties the house will
have and how they are all laid out.
However, it is just the blueprint, we
can't live in it. Builders will look at the
blueprints and use those blueprints to
make a physical house. They can use
the same blueprint to make as many
houses as they want. Each house will
have the same layout and properties.
Each house can accommodate its own
families. So, in this example, the
blueprint is the class, the house is the
object and the people living in the
house are data stored in the object's
properties.
Question 3
Answer
Question 4
Answer
Question 5
Answer
Answer
Question 7
Answer
Question 8
Answer
Question 9
Answer
Question 10
Answer
Characteristics Methods
colour makeCall()
model receiveCall()
IMEI Number
Answer
Characteristics Methods
colour startEngine()
Characteristics Methods
model stopEngine()
Registration Number
Answer
Characteristics Methods
name buy()
quantity sell()
cost
Answer
Characteristics Methods
name write()
type refill()
Company
Question 11
Answer
class Television {
int cost;
int discount;
int amount;
void Accept() {
/*
* Input the cost
* of Television
*/
}
void Calculate() {
/*
* Calculate the discount
*/
}
void Display() {
/*
* Show the discount and
* the amount paid
* after discount
*/
}
}
Video Explanations