B::foo; # subroutine call B->foo; # method call