No.
The speak()
method is part of an object.
It exists only when there is an object to contain it
(unlike a static
method that does not need an object.)
The picture shows the action, just as step 3 starts.
The variable anObject
is a reference to the object that was constructed.
That object contains the method speak()
.
So main()
can find and activate speak()
with:
anObject.speak();