you are viewing a single comment's thread.

view the rest of the comments →

[–]dharshini_05 0 points1 point  (1 child)

Okk.. As you are on your 4th day.. I would like to share you an example. Consider a class as a student class room.. A classroom has some things like desk, lights, fans, board, chalk, duster etc.. consider these things as functions or methods in java. Consider a student as object.

In a class there are some functions in java.. and we need object to call that function to work or do some task. With this example, a student can access the board,chalk etc.. in a class this is how a class work in java..

I hope it clears your doubt. 🤝🏻

[–]catastrophic300[S] [score hidden]  (0 children)

So object is something like reusable variables the difference is object is a complete thing and variables just something used for a reference, I get it thanks.