Results 1 to 5 of 5
- 03-19-2012, 03:11 PM #1
Member
- Join Date
- Mar 2012
- Posts
- 6
- Rep Power
- 0
A class calling methods from external class
I'm pretty new to Java, having taken only part of a class in data structures using Java. I'm also not that familiar with Object Oriented coding and terminology, so I apologize if I misuse it. The way I learned to code Java was to write a short main class that calls methods from an external class. I have a class that I want to keep pristine. So, I'd like to have a main class call a middle class that I modify and have that middle class call the class I'm keeping pristine. But, I can't get it to work. Any suggestions?
- 03-19-2012, 03:30 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
Re: A class calling methods from external class
Not too sure what a "pristine" class is.
Please do not ask for code as refusal often offends.
- 03-19-2012, 03:49 PM #3
Senior Member
- Join Date
- Aug 2008
- Location
- Stockholm, Sweden
- Posts
- 119
- Rep Power
- 0
Re: A class calling methods from external class
My suggestion is that you go through the tutorials and ask a specific question about your code when you get stuck on something.
- 04-14-2012, 06:52 PM #4
Member
- Join Date
- Mar 2012
- Posts
- 6
- Rep Power
- 0
Re: A class calling methods from external class
Thanks. I will go through tutorials. By pristine, I mean that I was given a class by the professor, and I want to make sure I don't ruin it, so I'd rather use it and add new features to another class that works with it.
- 04-16-2012, 11:36 AM #5
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
Similar Threads
-
ActionListener Calling methods from a different class
By JGBowers in forum New To JavaReplies: 16Last Post: 11-25-2011, 01:18 PM -
Calling base class methods
By new2java2009 in forum New To JavaReplies: 1Last Post: 11-15-2011, 10:47 PM -
Calling methods into another class? Help please!
By javanator in forum New To JavaReplies: 1Last Post: 03-20-2010, 06:19 PM -
'Class' Object and calling Static Methods?
By mikeiz404 in forum Advanced JavaReplies: 3Last Post: 01-24-2009, 12:58 PM -
'Class' Object and calling Static Methods?
By mikeiz404 in forum New To JavaReplies: 2Last Post: 01-24-2009, 05:10 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks