igopako456
Honorary Poster
- Joined
- Jan 12, 2021
- Posts
- 240
- Reaction
- 41
- Points
- 185
- Create a class that will convert a dollar to peso, the class must accept 1 value as arguments, then output the conversion use constructor and destructor method.
For example
$convert = Convert(2);
Output
2 dollar is equivalent to 100.9 pesos