Computer Applications
Consider a real world object as 'Cricket Ball'. Now, mention two behaviours and methods each by taking the 'Cricket Ball' as a software Object.
Objects & Classes
174 Likes
Answer
Characteristics — Colour, Condition
Behaviours/Methods — throw(), stop()
Answered By
85 Likes
Related Questions
Why is a class known as composite data type?
Write a statement to create an object 'Keyboard' of the class 'Computer'.
Refer a class structure as shown below:
class MySchool { Name Address Principal's name AcceptData(); PrintData(); }With reference to the above class declaration, indicate whether the following statements are True/False:
- Acceptdata( ) is the characteristic of the class.
- Address is behaviour of the class.
- Acceptdata( ) and PrintData( ) are the common behaviour for the objects of class 'MySchool'.
- Behaviours is the medium of inter-object communication.
- Creating multiple objects of the class 'MySchool' is not possible.
You want to create a class 'Football'. Choose the elements to be used as characteristics and behavior from the list given below:
Ball, Goalkeeper, Making a goal, Defender, Forward player, passing ball, Referee, hitting corner, making fault