what a real world example explain what are objects in oop
Answers
In Object Oriented Programming (Oop) object is an entity which has some specific characteristics and behaviour. Example
Duster, Chalk, Table etc
Example of real world is
- car
- table
- book
- copy
- pencil etc
Hope it help you...
Plz mark me as brainliest...
Answer:-
Objects in programming are just like real world objects like humans, cars, mobile phones, etc. To understand in simple terms let's take an example of a simple object of Class Man. Suppose there is a man named Rahul. Rahul has some attributes which represent basic information about him like his name, mobile number, address and there are some functions that he performs like eating, walking, jogging, teaching, singing, etc.
In this example, Rahul is the object, the basic information about Rahul is data of this object (Rahul) and what he does are methods of functions that he performs. So in this manner every object in the real world have some data and methods just like the objects in object oriented paradigms.
Reference from: Total Computer Applications Class 9
Reference from: Total Computer Applications Class 9Hope this helped!