# Want to learn how to create classes

**URL:** https://forum.kirupa.com/t/want-to-learn-how-to-create-classes/211819
**Category:** Uncategorized
**Created:** [January 5, 2007, 1:33pm UTC](https://forum.kirupa.com/t/want-to-learn-how-to-create-classes/211819 "2007-01-05T13:33:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mathminded](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mathminded](https://forum.kirupa.com/u/mathminded)
#### Post date: [January 5, 2007, 1:33pm UTC](https://forum.kirupa.com/t/want-to-learn-how-to-create-classes/211819/1 "2007-01-05T13:33:48Z")

</div>

I’d like to learn how to create classes. For instance, I’d like to create a class that draws a custom shape. Like an arrow that is just a rectangle with a triangle on the end. I’d like to be able to do this sort of thing:

myArrow = new Arrow();  
myArrow.\_x = 10;  
myArrow.\_y = 50;  
myArrow.\_width = 100;  
etc . . .

Could someone point me in the right direction for where I could learn this sort of thing?

Thanks!

-Mathminded
