Sign in to follow this  

Im learning C# and have a question

This topic is 3313 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

OK I am learning C# from this http://www.functionx.com/csharp/ and some books And I am stuck on Lesson 8 (http://www.functionx.com/csharp/Lesson08.htm) I do not understand the "Returning a Class or Passing a Class" part. I been understanding all the other stuff but do not get the Coordinate example. please Help I would like to continue learning. (If you go down a little you will see where it says "Returning a Class or Passing a Class")

Share this post


Link to post
Share on other sites
That example doesnt say much, what its doing is defining a function call that, creates a new point, prompts the console for the user to enter a value for x, reads it from the console, storing it in the x member, then does the same for the y member, then returns the new point containing the two values the user entered. What part are you having trouble with?

On a similar note, in my travels I came across a web version of a book written by a pretty good author, havent read it through, but people have said its good, its in pdf form here

http://www.charlespetzold.com/dotnet/

I have his win32 book, its very good, might help you.

Share this post


Link to post
Share on other sites

This topic is 3313 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this