Skip to Main Content
Learn to Program with Minecraft
book

Learn to Program with Minecraft

by Craig Richardson
November 2015
Beginner to intermediate content levelBeginner to intermediate
320 pages
7h 49m
English
No Starch Press
Content preview from Learn to Program with Minecraft

12GETTING CLASSY WITH OBJECT-ORIENTED PROGRAMMING

image

Reusability is a very important aspect of programming. It saves time and effort. You’ve seen this with loops and functions, and now you’ll learn about object-oriented programming.

Object-oriented programming is an approach to programming that groups functions and variables together to create classes. Each class can be used to create objects that share the same variables and functions as the class. You can create many objects from the same class, making the class’s variables and functions reusable.

When a function is part of a class, it’s called a method, and a variable that’s part of a class is ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Minecraft Modding For Kids For Dummies

Minecraft Modding For Kids For Dummies

Sarah Guthals, Stephen Foster, Lindsey Handley
Minecraft Modding with Forge

Minecraft Modding with Forge

Aditya Gupta, Arun Gupta
Adventures in Minecraft, 2nd Edition

Adventures in Minecraft, 2nd Edition

David Whale, Martin O'Hanlon

Publisher Resources

ISBN: 9781457198823Errata Page