About 227,000 results
Open links in new tab
  1. c# - What are Virtual Methods? - Stack Overflow

    Mar 7, 2009 · 9 Virtual methods are similar to abstract methods in base classes except their implementation on derived classes is optional. Also you could put logic in virtual method and override …

  2. What is a virtualenv, and why should I use one? - Stack Overflow

    Feb 1, 2017 · pip install <name of package> I'm getting permission errors and I'm not sure why. I could run it with sudo, but someone told me that was a bad idea, and I should use a virtualenv instead. …

  3. system verilog - what does "virtual" mean when applied to a ...

    Feb 27, 2020 · 1 Analog to a virtual interface in normal programming languages is a pointer or a reference (to the interface object). It is used as a reference in system verilog test bench components, …

  4. Why use 'virtual' for class properties in Entity Framework model ...

    Dec 17, 2011 · That's why they're marked as virtual for use in the Entity Framework; it allows the dynamically created classes to override the internally generated get and set functions.

  5. .net - virtual keyword in c# - Stack Overflow

    Jul 31, 2023 · 10 virtual is a way of defining that a method has a default implementation, but that that implementation may be overriden in a child class. Other than by using virtual, you cannot override a …

  6. What does the virtual keyword mean when overriding a method?

    Dec 26, 2013 · Virtual keyword in derived class is optional but it's better to skip it. Otherwise, if you have a lot of derived classes and you want to make one of the inherited methods virtual, you would have …

  7. c# - virtual properties - Stack Overflow

    Feb 11, 2012 · You can have methods (often), properties, indexers or events, the virtual keyword has the same meaning : modifying the meaning (override) of the base class item. With properties, you …

  8. C# - when to use public int virtual, and when to just use public int

    Oct 2, 2012 · Base classes may define and implement virtual methods, and derived classes can override them, which means they provide their own definition and implementation. At run-time, when client …

  9. c++ - Virtual/pure virtual explained - Stack Overflow

    Jul 31, 2019 · What exactly does it mean if a function is defined as virtual and is that the same as pure virtual?

  10. Why do we need virtual functions in C++? - Stack Overflow

    Mar 6, 2010 · Virtual functions avoid unnecessary typecasting problem, and some of us can debate that why do we need virtual functions when we can use derived class pointer to call the function specific …