Soldato
- Joined
- 26 Aug 2012
- Posts
- 4,517
- Location
- North West
Hi All,
I have my final exam tomorrow and I need help to one question that I am struggling to answer properly.
There is a 10(10%) mark question asking to explain the magic methods __construct and __destruct. I know how to explain and implement both of them and destruct is very simple. I am struggling to understand how explaining both of these is worth 10% of a paper?
I am wondering if someone could aid me in understanding how the question is worth so much or explaining the methods in detail that deserves 10 marks.
Thanks,
James
I have my final exam tomorrow and I need help to one question that I am struggling to answer properly.
There is a 10(10%) mark question asking to explain the magic methods __construct and __destruct. I know how to explain and implement both of them and destruct is very simple. I am struggling to understand how explaining both of these is worth 10% of a paper?
I am wondering if someone could aid me in understanding how the question is worth so much or explaining the methods in detail that deserves 10 marks.
Thanks,
James
And you can obviously pass arguments into the constructer: