When a method statement boasts a static modifier, one system is allowed to be a fixed strategy

When a method statement boasts a static modifier, one system is allowed to be a fixed strategy

A fixed means will not operate on a certain such as, and is also an attain-day mistake to refer to that particular inside a fixed means.

An instance means operates with the a given illustration of a course, which such is going to be utilized because (§eleven.eight.12).

fourteen.6.4 Virtual steps

Whenever a case strategy declaration boasts a virtual modifier, that experience supposed to be a virtual method. Whenever no virtual modifier can be obtained, the process is claimed getting a non-digital method.

The utilization of a low-virtual method is invariant: The newest execution is the same perhaps the method is invoked into an example of the class where it is announced or an instance of a good derived category. However, brand new utilization of an online method are going to be superseded from the derived kinds. Leer más