About 17,500,000 results
Open links in new tab
  1. 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 to understand.

  2. 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 unoverrideable. That …

  3. 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. What does that...

  4. terminology - Overwrite or override - Stack Overflow

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

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

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

  7. overriding - Override and overload in C++ - Stack Overflow

    Jan 9, 2009 · Over riding a function is entirely different, and serves an entirely different purpose. Function overriding is how polymorphism works in C++. You override a function to change the …

  8. Is it possible to override a non-virtual method? - Stack Overflow

    If a method is virtual, you can override it using the override keyword in the derrived class. However, non-virtual methods can only hide the base implementation by using the new keyword in place of the …

  9. What Is The Purpose of @override used in Flutter?

    Jul 7, 2018 · Use the @override annotation judiciously and only for methods where the superclass is not under the programmer's control, the superclass is in a different library or package, and it is not …

  10. Why do I get "must override a superclass method" with @Override?

    Jan 2, 2012 · In Java 5, the @Override annotation requires that the method is actually overriding a method in a superclass. In Java 6 and later, the @Override annotation will also be satisfied if the …