I am moving from using Python to Julia and would like to create an object like this:
class myObject():
def __init__(inputA,inputB):
self.x = inputA;
self.y = inputB;
self.z = x*y;
I know that in Julia we use struct but am unsure how to implement the functionality as describe above without setting z manually (outside of the inner-constructor). How would I do this?