Computer Science, asked by Harshi666, 1 year ago

consider a real world object as Cricket ball. Now mention two behaviours and methods each by taking the cricket ball as a software object.


Harshi666: this world is full of selfishness and self seeking
Harshi666: cause I am curious to grow up and be in my safety in this cunning world... so I should learn everything before and become prepared...
Harshi666: oh... google them.. they have a deep meaning
Harshi666: ok
Harshi666: ya... and this is really worst time of life

Answers

Answered by Anonymous
62
Hi,

I will answer your question but first I wanna make you understand:-

what is -

1. class

2. object

3. property

4. method

I know that your question doesn't have class and property but these all four things are related to each other.

I want to explain this with the help of a sentence.

I'm Ajay (object), I belong to human class and my methods/behaviors (actions) are walking, running, talking, laughing, And black eyes, two legs, two hands, two ears, black hairs are my properties.

(Please read above sentence at least twice).

Let's solve your question now.

we are taking a cricket ball as our example here, so cricket ball is our object, can you guess it's class? it's class is ball. Now what are it's behavior or methods? it bounces and rotates i guess.. so bounce and rotation are it's behavior or methods.. and color, material are it's properties.

Actually in computer science world there is tendency to use big words which sounds very complicated to understand. So I tried to simplify them.

Hope it will help you.

Harshi666: haha...
Harshi666: true
Harshi666: k.. what about ur future now??
Harshi666: ur already in youth
Harshi666: so anything u want to do other than programming??
Harshi666: ya.. u told before... actually it is my dream to travel the entire world
Answered by bandameedipravalika0
0

Answer:

Explanation:

Two behaviours and methods of the cricket ball is throw and catch.

What is behaviour?

The methods of an object, which are the functions and subroutines defined within the object class, define its behaviour. A class would be nothing more than a structure if it didn't include class methods. Methods define a class's functionality, how it alters its data, and how it behaves in general.

What is method?

A method is a procedure in object-oriented programming (OOP) that is linked to a message and an object. An object is made up of state data and behaviour, which together form an interface that describes how the object can be used by its various consumers. A method is a consumer-parameterized action of an object.

Therefore, by taking the cricket ball as a software the behaviours and methods are throw and catch.

Similar questions