Can you suggest class structure for well known Mars rover application [closed]
-
30-03-2021 - |
質問
I hope many of you might have heard about well knows "mars rover problem" if not then please check here http://thefundoowriter.com/2009/10/01/the-mars-rover-problem/ I am working on this but I am not that much expert in classes and objects, I have made this program in procedural php its working fine but I am confused about class,object based solution.
What classes and methods should be there?
解決
If you procedural program is already working you can use it as a base and make it OOP. Have a look at your procedures. Which procedures use similar parameters? Those group of parameters might be a good start for a class and the procedures for the methods.
所属していません StackOverflow