Relative Content

Tag Archive for object-oriented

Python simulation-scripts architecture

Situation:
I’ve some scripts that simulate user-activity on desktop. Therefore I’ve defined a few cases (workflows) and implemented them in Python. I’ve also written some classes for interacting with the users’ software (e.g. web browser etc.).

Replacing Multiple Inhertance with delegation

I was going through “Object Oriented Modelling and Design” by James Rumbaugh et al and it said that in languages where multiple inheritance is not supported like Java three mechanisms can be used as workarounds

Pass ID or Object?

When providing a business logic method to get a domain entity, should the parameter accept an object or an ID? For example, should we do this: