0

What is Object in Programming? Explain in simplest way.(Help me)

I have heard multiple times but what does object actually mean?

2nd Apr 2019, 11:17 AM
Abhisekh Upadhaya
Abhisekh Upadhaya - avatar
5 Answers
+ 4
You should focus on one language only. You can proceed to the chapter about Object Oriented Programming soon. I see you have both Python and JavaScript, so I am using a generic code snippet to explain class Sololearner id : 1234 username : "Abhjsek" xp: 567890 This is a class When we create instance of class with sololearner1 = new Sololearner() sololearner1 is called an object. It has a collection of property and later self-defined method, then it is object oriented programming.
2nd Apr 2019, 12:57 PM
Gordon
Gordon - avatar
+ 4
EVERYTHING is an object in programming, so any class is a subclass of Object. An object can have some properties and methods, which you set values in and ask it to do something.
4th Apr 2019, 2:08 AM
Flandre Scarlet
Flandre Scarlet - avatar
+ 1
Krzych class contains the information of what property to have and what methods to have instance of class contains the specific values for each properties. Object oriented programming is defining class and creating instances of class. (but in JavaScript, you can choose not to define class, just create the instance to be used once only.)
4th Apr 2019, 3:25 AM
Gordon
Gordon - avatar
0
A class is also a kind of object, isn't it?
2nd Apr 2019, 1:20 PM
Krzysztof WoƂowiec
Krzysztof WoƂowiec - avatar
0
What is Class in programming? I said to give simple answer but you all are making more complex.
11th Apr 2019, 5:04 PM
Abhisekh Upadhaya
Abhisekh Upadhaya - avatar