Re: Is this too much OOP?
"Frans Bouma" <perseus.usenet.NOSPAM.@xxxxxxxxx> wrote:
Bruno Desthuilliers wrote:
The problem here is that a manager is not a special type of
employee, it's an employee that has a special role - possibly at a
given moment.
Ok, but only in the limited context of the given example sentence
(thus 'manager is subtype of employee'). If you add the essential
information that a manager manages a department, how would you do it
then? Still place the 'managesdepartment' association in Employee? I
think that's subject of discussion, so IMHO saying 'burn that book
blabla' is out of line.
IMHO, the two of you are too caught up in Employee and Manager out of
context. You can't say anything about what should derive from what, or
what roles should or should not exist unless you know the context these
classes will be used in.
--
There are two things that simply cannot be doubted, logic and perception.
Doubt those, and you no longer have anyone to discuss your doubts with,
nor any ability to discuss them.
.
Relevant Pages
- Re: Half user config and half client prog implemented
... I am having a hard time envisioning any sort of "employee leave" abstraction that could not be fully configured by supplying values for a fixed set of knowledge attributes. ... Often this will just be to prevent clashes, if it is a company holiday then it can't also be sick leave. ... But when it comes to annual entitlement or some special kind of compulsory company leave, then special rules will apply such as imposing an 'overdraft limit' or allowing an administrator to configure the company holidays. ... Each way probably represents a different context and, consequently, a different client object employing a different suite of rules and policies for things like conflict detection. ... (comp.object) - Re: please answer these questions as soon as possible. because i have exam
... can the clone be identical to the original? ... The concept of identity does not depend on the context. ... representation in one context of employee 123456, ... process space, some other client program may also have such objects, ... (comp.object) - Re: please answer these questions as soon as possible. because i have exam
... can the clone be identical to the original? ... If I have a client going against an RDBMS, the context is clear, it's ... representation in one context of employee 123456, ... process space, some other client program may also have such objects, ... (comp.object) - Re: Design problem and suggestions...
... A "context" table can hold person & role. ... > the both employee and customer. ... please post details of your proposed schema e.g. the new ... (microsoft.public.access.tablesdbdesign) - Re: Simple question
... I have customer class, employee class. ... In that case the semantics of address may be the same. ... This is fine as long as a Person is always either a Customer or an Employee in the problem context. ... (comp.object) |
|