+ 2

Object oriented programming

Please how do oop works . Cos i have heard a lot about it.😊

28th May 2019, 5:04 AM
Ido Dickson Evergreen
Ido Dickson Evergreen - avatar
4 Respostas
+ 3
Objects are like templates that you can use over and over for different purposes (just defining their properties according to your needs). Like a pencil and a pen: both of them are cylindrical objects that we can sketch with them. So we define an object called "item to draw" . When we want to use one of it we just "call" the item to draw but we need to specify (with a property or attribute) if we want it with ink or graphite. This approach works with methods or functions and so on... Is like writing pieces of code for build a bigger program without the need of defining over and over the "same thing".
28th May 2019, 6:47 AM
Jonas
Jonas - avatar
+ 1
oop is simply creating code with different objects that can be manipulated throughtout the code but is seperate from each other. in this way..you can debug things easier..do group projects easier and just make code that is overall easier to deal with.
28th May 2019, 5:46 AM
Jason Kennedy
0
Thanks.
28th May 2019, 5:48 AM
Ido Dickson Evergreen
Ido Dickson Evergreen - avatar
28th May 2019, 8:16 AM
GeneralZod
GeneralZod - avatar