Can you call the method of a parent class in a different file in a way that it uses a passed object from a class defined in the current file?
I’ve created a class Foo
that takes in its initialization an object of class Obj
. If no object is given, it’s set to a default Obj()
.