An open API service indexing awesome lists of open source software.

https://github.com/paiv/oop_study

Practical OOP in different languages
https://github.com/paiv/oop_study

c cpp java javascript oop-principles python ruby scala swift

Last synced: 3 months ago
JSON representation

Practical OOP in different languages

Awesome Lists containing this project

README

          

OOP Study
=========

Task
----

Make an app that controls two devices, `Device A` and `Device B`,
via corresponding controllers, `Controller A` and `Controller B`.
There might be many vendors for `Device A`, as well as for `Device B`.

Spec
----

Device A:
- op1(int)
- op2(int): int

Device B:
- op1(int)
- op2(int, int): int

Controller A:
- foo(param): device.op1(param * param)
- run(param): device.op2(param)

Controller B:
- foo(param): device.op1(param * param)
- run(param): device.op2(param, param)

App:
- controllerA.foo(13)
- controllerB.foo(15)
- controllerB.run( controllerA.run(42) )