Posts by Lilamuse • 11 points
2 posts
-
1
votes2
answers441
viewsA: When I use the __Construct method do I not need to use get; set?
If you want to access the $Description and $Price attributes, yes. If they were public, you could read and modify them directly using $p1->preco = 10; but as in your class the attributes are…
-
0
votes7
answers4789
viewsA: Force input with a dot instead of an html comma
There are several solutions to your problem. HTML (caution, compatibility problems between browsers) You can use a different type of input (number instead of text), so the user will not be able to…