In my lecture notes regarding Static binding, it gives an example using an instance method.
Example: class Animal has method:
void dumb() {int x = 0;}
Then
Animal doudi = new Animal();
doudi.dumb();
the compiler can directly insert the body {int x = 0;}
However, from what I understand, this isn't a static method, so why is it using static binding as opposed to dynamic binding?
Also, on this website, it says that instance methods are resolved using dynamic binding.
Is the example here not an instance method?