About 11,100,000 results
Open links in new tab
  1. Should I use virtual, override, or both keywords? - Stack Overflow

    328 When you override a function you don't technically need to write either virtual or override. The original base class declaration needs the keyword virtual to mark it as virtual. In the derived …

  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. Что означает "@Override" перед объявлением метода?

    Oct 15, 2010 · 30 Аннотация @Override перед объявлением метода означает, что метод переопределяет объявление метода в базовом классе.

  4. java - What does @Override mean? - Stack Overflow

    Dec 3, 2010 · public class NaiveAlien extends Alien { @Override public void harvest(){} } I was trying to understand my friend's code, and I do not get the syntax, @Override in the code. …

  5. terminology - Overwrite or override - Stack Overflow

    Dec 28, 2011 · Should we refer to "replacing an implementation" as overwriting or overriding? Is it language-specific?

  6. When do you use Java's @Override annotation and why?

    Sep 18, 2008 · What are the best practices for using Java's @Override annotation and why? It seems like it would be overkill to mark every single overridden method with the @Override …

  7. 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 …

  8. Overriding == operator. How to compare to null? - Stack Overflow

    To keep things consistent, we override the == and != operators, too, for the developers on the team who don't use the .Equals method. public static bool operator !=(Person person1, Person …

  9. Should we @Override an interface's method implementation?

    Oct 17, 2008 · The method does override or implement a method declared in a supertype. The method has a signature that is override-equivalent to that of any public method declared in …

  10. 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 …