my $a_ref = ClassA->new(); my $b_ref = ClassB->new(); my $obj_ref = MyClass->new($a_ref, $b_ref);