Using object orientated programming

1 次查看(过去 30 天)
I have to draw a n-pointed and n-sized star using a turtle which basically functions as a pen that can be told to draw a certain length and to rotate to draw in different directions. It should work as a function where the user inputs the size and number of points and the turtle draws the star.
  1 个评论
Guillaume
Guillaume 2016-10-17
编辑:Guillaume 2016-10-17
Do it in LOGO. Done in 8 lines of code!
More seriously, what is your question and where does OOP figure into this?
Hopefully, you're not asking for somebody to do your homework for you.

请先登录,再进行评论。

回答(1 个)

Prasad Mendu
Prasad Mendu 2016-10-19
编辑:Prasad Mendu 2016-10-19

类别

Help CenterFile Exchange 中查找有关 Earth and Planetary Science 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by