0
What is Object in Programming? Explain in simplest way.(Help me)
I have heard multiple times but what does object actually mean?
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.
+ 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.
+ 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.)
0
A class is also a kind of object, isn't it?
0
What is Class in programming?
I said to give simple answer but you all are making more complex.