Matt Morrison
New member
- Joined
- Jul 10, 2008
- Messages
- 3
- Programming Experience
- 1-3
Hello All,
Can someone please explain to me what the implication might be if I did not implement an interface correctly i.e. if the interface defined an update() method and I wrote a class that implements the interface and all its methods and properties; all except for the update() method?
There is no particular reason for my question, just curious as although I am picking up more design patterns and programming to interfaces I have never understood what might be if we did not 'adhere to the contract'?!
Thanks in advance for your input.
Can someone please explain to me what the implication might be if I did not implement an interface correctly i.e. if the interface defined an update() method and I wrote a class that implements the interface and all its methods and properties; all except for the update() method?
There is no particular reason for my question, just curious as although I am picking up more design patterns and programming to interfaces I have never understood what might be if we did not 'adhere to the contract'?!
Thanks in advance for your input.