A
A
Abc Edc2014-11-19 16:05:52
OOP
Abc Edc, 2014-11-19 16:05:52

How to transfer from ordinary procedures to beautiful OOP?

I write such ordinary most

function 1(a,b,c)
{
...
.
return}
function(){}
...

function n()

on php,js,
but when I read someone's code on the toaster here or Habré, I constantly see
class{
NAME

function SUPERREKURSIYA()
}

I envy you balin, teach me too, throw off your examples of how to become cool if you don’t mind. I was previously written to read about encapsulation and all that - thank you very much, I read it and have an idea, but still there the examples were not the best, like this take it and start all the time without thinking about writing through classes, etc. if you are used to a simple set of functions

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
azShoo, 2014-11-19
@gleber1

how to take it like this and start writing all the time without thinking

To write beautifully - you still have to think.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question