Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Communication between the classes

 
shivang sarawagi
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am making a Project management system in core java. I have 5 classes for that, but i am facing problems in communicating between the classes using class objects
and arraylists. I haven't done this before so i am not clear with the concept of interaction between the classes. Is there any tutorial for that ?? i will be grateful if anyone
can help. Thanks
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Communication between classes happens via method invocations on objects of the classes (if the methods are not static) or on the classes themselves (if the method is static). Let me give an example:

The Class and Objects tutorial must of be of some help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic