Join us today!

Notifications
Clear all

[Solved] Challenge Project Operations: Addition, Subtraction, Division, program OOP with Interfaces, Polymorphism, Etc...

6 Posts
3 Users
7 Reactions
679 Views
runtimevictor
Posts: 156
Topic starter
(@runtimevictor)
Estimable Member
Joined: 2 years ago

Hello, 

My challenge would be to carry out a project that performs addition, subtraction and division operations under OOP object-oriented programming, in which interfaces, polymorphism, etc... must be used,
The philosophy or the approach should not be changed to make it an interesting challenge and with a little difficulty in assuming concepts, it is also intended that it remain as a fluid programming that is the one that is most similar to the way we speak and the most natural...
I attach some photos so that we all follow the same structure and definition... I hope you have fun coding and looking for the solution to the exposed challenge...

Challenge Operations OOP Interfaces Polymorfism

 

Reply
5 Replies
5 Replies
twinControls
Admin
(@twincontrols)
Joined: 2 years ago

Member
Posts: 114

@runtimevictor Great question! 

calculate

 (((12-2) + 3. 9 ) * 5 ) / 3 

I will publish a tutorial soon to explain the design pattern that I used for this solution.

Reply
runtimevictor
(@runtimevictor)
Joined: 2 years ago

Estimable Member
Posts: 156

@twincontrols ,

waiting eagerly for the tutorial, how fluid and beautiful I like it a lot...

Reply
twinControls
Admin
(@twincontrols)
Joined: 2 years ago

Member
Posts: 114

@runtimevictor It's published now ! fluent-interface-and-method-chaining-in-twincat-3

Reply
Moderator
(@treyem)
Joined: 2 years ago

Member
Posts: 16

@runtimevictor I basically got the same as @twinControls. Nice question!

fVar = ((((6+4) / 5) * 8) - 9) = 7

 

Operation2
Reply
runtimevictor
(@runtimevictor)
Joined: 2 years ago

Estimable Member
Posts: 156

@treyem ,

congratulations very well...

Reply
Share: