Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed C# Objects!
You have completed C# Objects!
Preview
We can create new types that inherit the attributes and behaviors of existing types.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
It has x and y fields and
0:00
even has a method that calculates
how far it is from another point.
0:02
The Treehouse defense game uses this
class to identify locations on the map.
0:07
But it could be used for
a lot more than that.
0:12
Lots of software applications use x and
y coordinates to identify a location.
0:15
Perhaps the next game we write
will also need a point class.
0:20
Software that displays charts and
graphs also needs points.
0:23
If we keep our implementation of the point
class as general purpose as possible,
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up