mardi 10 mai 2016

Logic inside constructor

Is it a good idea to have logic inside __constructor?

public class someClass
{
    public function __construct()
    {
        //some logic here
    }

So far I thought that it is fine; however, this reddit comment suggests the opposite.

Aucun commentaire:

Enregistrer un commentaire