Relative Content

Tag Archive for object-oriented-design

Representing complex object dependencies

I have several classes with a reasonably complex (but acyclic) dependency graph. All the dependencies are of the form: class X instance contains an attribute of class Y. All such attributes are set during initialization and never changed again.

What are abstract classes and abstract methods?

I got several explanations but so far I’m not able to understand that what are the abstract classes and methods in Java.
Some said it has to do something with the security of the program, other said it isn’t anything like that.
Even from the Dietel & Dietel’s book I don’t get it’s purpose.
When, where and why do we use it?

Good implementation strategies for encapsulating shared data in a software pipeline

I’m working on re-factoring certain aspects of an existing web service. The way the service APIs are implemented is by having a kind of “processing pipeline”, where there are tasks that are performed in sequence. Unsurprisingly, later tasks may need information computed by earlier tasks, and currently the way this is done is by adding fields to a “pipeline state” class.