Java help, newbie! - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Java help, newbie!

MalekovitsMalekovits Posts: 24Member
Hi!

I have to create a "cd/vinyl store" in java with these classes:

etc.

OUTLET (OUTLET_NUMBER, address, city, phone)
EMPLOYEE (OUTLET_NUMBER, EMPLOYEE_NUMBER, name)
...

How to "link" the Employee class to Outlet's outlet_number?

I have do this, it works, but it points to the whole class:

[b]public class Employee
{

[u]Outlet outlet;[/u]
int employee_num;
String employee_name;[/b]

the underscored is the link to the Outlet class, but I want to connect to the first variable if I understand well.

Any idea?

Sign In or Register to comment.