This may be addressed in several techniques, like using virtual inheritance.[three] Alternate ways of object composition not depending on inheritance for example mixins and qualities have also been proposed to deal with the ambiguity.This commonplace misconception assumes that objects are passed by reference in Java strategies. The pitfall lies in