+ 3

What is object used for?

I wonder, what object is actually used for? Most people prefer to use library for their project than using the vanilla itself, so i never seen anyone using an object

1st Aug 2019, 1:18 AM
Muhamad Rizal Noor pratama
Muhamad Rizal Noor pratama - avatar
11 Antworten
+ 7
I use objects when I need multiple objects of the same type but want to keep all there data seprate.
1st Aug 2019, 7:12 AM
D_Stark
D_Stark - avatar
+ 7
Objects are used to model real world entities.
1st Aug 2019, 7:19 AM
Sonic
Sonic - avatar
+ 5
object is just a way to create an instance of an item which can be manipulated at will. even with libraries..objects are important for instance..a score keeping algoruthm can be made an object wjich is updated as conditionals are met and this object can be used anywhere in the program
1st Aug 2019, 2:12 AM
Jason Kennedy
+ 4
Muhamad Rizal Noor pratama all humans are objects right? so we all have our own data (age,name,ect..) if we didn't and we all shared the same data then each time someone would have a birthday then everyone will also age 1 year. Having objects stops this from happening and each new object is treated seperate from one another which is of the same type of data.
1st Aug 2019, 8:05 AM
D_Stark
D_Stark - avatar
+ 2
Sonic i know, but what im ask is what could people use object in their project
1st Aug 2019, 7:51 AM
Muhamad Rizal Noor pratama
Muhamad Rizal Noor pratama - avatar
+ 2
Sonic Jason Kennedy Jamie💐 ok that gives me a good understanding, thank you
1st Aug 2019, 7:56 AM
Muhamad Rizal Noor pratama
Muhamad Rizal Noor pratama - avatar
+ 2
D_Stark LOL "all humans are objects" .... and then I stopped reading. Maybe there are better worded examples than that ;-)
1st Aug 2019, 8:23 AM
ifl
ifl - avatar
+ 1
What about vue? It use objects too right?
1st Aug 2019, 7:55 AM
Muhamad Rizal Noor pratama
Muhamad Rizal Noor pratama - avatar
+ 1
ifl humans/people would be objects in programming theres no need to word it better 😊
1st Aug 2019, 8:31 AM
D_Stark
D_Stark - avatar
+ 1
\o/ i think i see that joke somewhere lol XD but your opinion useful enough, thank you
13th Aug 2019, 5:26 AM
Muhamad Rizal Noor pratama
Muhamad Rizal Noor pratama - avatar
0
IMO, Objects are used to make life easy. From ancient time till today objects are used. Even config files are modelled to make it easy. We human are different, we are not an object. I heard someone saying in background “don’t treat me like an object, how dare you!”. 😄 We create object, give life and must know how to utilize. Object cannot think, we do.
13th Aug 2019, 5:19 AM
\•/
\•/ - avatar