Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating your own class  RSS feed

 
Sam Smoot
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an assignment in which a part of it requires I create my own class of Long_Integer. I haven't done much over the past year, and am a little rusty. I am assuming all I have to do is create the class and import it into the other program that I will be writing.

Anybody know of a good example of how to do this just so my feble brain can take a break? I don't need the class, just an example of creating and using it.

Thanks in advance..
 
Marilyn de Queiroz
Sheriff
Posts: 9079
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
public class Long_Integer
{
// Stuff about handling Long/long and Integer/int
}
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 15861
81
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look through the tutorial:

Learning the Java Language
 
Sam Smoot
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I'm trying to "reboot" my coding skills, so I'm a little rusty.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!