computer programming with murtle the turtle. a program is a set of instructions. that tells a computer what to do. java is a programming language. java is object-oriented. an object is a thing,. like a cookie. an object belongs to a class . a class is like a cookie-cutter.
that tells a computer what to do.
java is object-oriented.
like a cookie.
a class is like a cookie-cutter.
with one cookie-cutter?
methods define what an object can do.
murtle is an object.
GTurtle murtle = new GTurtle();
see murtle grow.
see murtle spin.
see murtle move.
so she can do things.
Don’t forget!Ctrl+1 to compileCtrl+3 to run
//Draw a bunch of squares
for (int i = 0; i < 36; i++)
//Draw a square
for (int j = 0; j < 4; j++)