About 20,900,000 results
Open links in new tab
  1. In Python, how do I indicate I'm overriding a method?

    In Java, for example, the @Override annotation not only provides compile-time checking of an override but makes for excellent self-documenting code. I'm just looking for documentation …

  2. What is the 'override' keyword in C++ used for? [duplicate]

    I am a beginner in C++. I have come across override keyword used in the header file that I am working on. May I know, what is real use of override, perhaps with an example would be easy …

  3. How do I override nested NPM dependency versions?

    2 I had an issue where one of the nested dependency had an npm audit vulnerability, but I still wanted to maintain the parent dependency version. the npm shrinkwrap solution didn't work …

  4. Overriding fields or properties in subclasses - Stack Overflow

    } class Son : Father { public override int MyInt { get { return 1; } set { } } } Option 2 I can declare a public field (or a protected field) and explicitly override it in the inherited class. The example …

  5. Should I use virtual, override, or both keywords? - Stack Overflow

    override: For overrides of that virtual function in a class derived from some base class providing a virtual function of the same (or covariant) signature final: For marking an override as …

  6. How to override equals method in Java - Stack Overflow

    I am trying to override equals method in Java. I have a class People which basically has 2 data fields name and age. Now I want to override equals method so that I can check between 2 …

  7. c# - Override get, but not set - Stack Overflow

    I have an abstract class that defines a get, but not set, because as far as that abstract class is concerned, it needs only a get. public abstract BaseClass { public abstract double MyPop {get...

  8. Why doesnt this function overide the base class function

    The override keyword can only be used when the function it's overriding is virtual. (It is, effectively, just a 'safer' way of specifying virtual in a derived class, so that you can spot cases where …

  9. How can I override Bootstrap CSS styles? - Stack Overflow

    How can we override the css for the body element? It is good practice to use id instead of class selector? Can you help me with this?

  10. Safely override C++ virtual functions - Stack Overflow

    Something like C#'s override keyword is not part of C++. In gcc, -Woverloaded-virtual warns against hiding a base class virtual function with a function of the same name but a sufficiently …