Correct use of PHP
I have an architectural question. Usually, I create methods that further cause the following methods. As a result, a class of completed application is created. Is there an architectural slice in this or is it all right?
Mystic last edited by
You need to understand what a class is, his very essence. ...let's say there's a man, a dog, a doctor and an apple, four different objects and four different classes. ♪ We can't have a class of Sobaca Celveveco Doctor Apple, which is pointless.
Each class has methods, for example, a man and a dog can run these methods, and all objects have properties - for example, all four of them have a height, their properties, each of their properties.
Also, classes can be inherited by other classes, for example, a doctor is basically a human being, that's all he can do and a doctor... that's a doctor who inherits a human class, but that's not true... that every man knows what a doctor can do is a basic princenipe you need to learn.
Also, in your classroom, it's not likely that all the logic is that you've most likely created the Sobaka-Cleloveco Doctor Apple-- who knows and walks, and healing and loving.