Καλημέρα Νίκο,
Την κεντρική μέθοδο main πρέπει να την δηλώσουμε στο ίδιο project για την κλήση των αντικειμένων ή σε ξεχωριστό γιατι όταν την βάζω στο ίδιο project παίρνω compile error
No enclosing instance of type Employee is accessible. Must qualify the allocation with an enclosing instance of type Employee (e.g. x.new A()
where x is an instance of Employee).
- The local variable A is never read
Στην εκφώνηση λέει να φτιάξω δικιά μου κλάση για την main..Αυτο θα γίνει σε άλλο project ή στο ίδιο?
Υ.Γ Απο ότι καταλαβαίνω απο τον compiler πρέπει να κάνω instantiate την κλάση μου σώστα?
Την κεντρική μέθοδο main πρέπει να την δηλώσουμε στο ίδιο project για την κλήση των αντικειμένων ή σε ξεχωριστό γιατι όταν την βάζω στο ίδιο project παίρνω compile error
No enclosing instance of type Employee is accessible. Must qualify the allocation with an enclosing instance of type Employee (e.g. x.new A()
where x is an instance of Employee).
- The local variable A is never read
Στην εκφώνηση λέει να φτιάξω δικιά μου κλάση για την main..Αυτο θα γίνει σε άλλο project ή στο ίδιο?
Υ.Γ Απο ότι καταλαβαίνω απο τον compiler πρέπει να κάνω instantiate την κλάση μου σώστα?