質問

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top