Skip to main content
added 1 characters in body
Source Link
Athens Holloway
  • 2.2k
  • 3
  • 18
  • 26

overriding is reserved for instance members to support polymorphic behaviour. static class members do nonot belong to a particular instance. instead, static members belong to the class and as a result overriding is not supported because subclasses only inherit protected and public instance members and not static members. You may want to define an inerface and research factory and/or strategy design patterns to evaluate an alternate approach.

overriding is reserved for instance members to support polymorphic behaviour. static class members do no belong to a particular instance. instead, static members belong to the class and as a result overriding is not supported because subclasses only inherit protected and public instance members and not static members. You may want to define an inerface and research factory and/or strategy design patterns to evaluate an alternate approach.

overriding is reserved for instance members to support polymorphic behaviour. static class members do not belong to a particular instance. instead, static members belong to the class and as a result overriding is not supported because subclasses only inherit protected and public instance members and not static members. You may want to define an inerface and research factory and/or strategy design patterns to evaluate an alternate approach.

Source Link
Athens Holloway
  • 2.2k
  • 3
  • 18
  • 26

overriding is reserved for instance members to support polymorphic behaviour. static class members do no belong to a particular instance. instead, static members belong to the class and as a result overriding is not supported because subclasses only inherit protected and public instance members and not static members. You may want to define an inerface and research factory and/or strategy design patterns to evaluate an alternate approach.