Posts by JPFreitas • 31 points
2 posts
-
-1
votes4
answers151
viewsA: How to build a class correctly with access methods?
cracking my head a little.. I came to the following conclusion.. and that worked out by the way.. only that I n am with separate files(the class in a separate file from the view).. <?php class…
-
2
votes4
answers151
viewsQ: How to build a class correctly with access methods?
How do I join several variables into a single object? How do I arrange the following code? <?php class Produto { //Atributos var $cpu; var $mb; var $psu; //Getters & Setters function…