• Post Reply Bookmark Topic Watch Topic
  • New Topic

silly question  RSS feed

 
omar bili
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all I have a very stupid question
i need to use the n-tier approach
there is 3 folders , the DataAcces the buisinessRules and the userInterface
all the classes in the DataAcces should be able to use the classes in
the buisinessRules , and ....
how can i do that !
thx ,and sorry if my question is silly
 
Petr Blahos
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Omar,

About these 3 folders, do you mean that your sources are in those
3 folders? In that case you probably want to use packages and the
best think would be to read sun java tutorial on packages, or
packages introduction in any java book. Basically you want to define
a package name at the first line of your file
(like:
folder1/file1.java:
package folder1;
)
And import the package in the other files
(like:
folder2/other.java:
package folder2;

import folder1;
).
Is this what you wanted? Well, really reading a book about that
would be the best thing todo.

BTW, are you sure that your DataAccess should have access to
business logic? Shouldn't it be the other way round?

Now, your question was not silly, but your subject could have
been a bit more descriptive.

Regards,
Petr
 
omar bili
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thx Petr for ur help
 
Tom Hill
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No such thing as a silly question! Well there are some !
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!