2
I can’t write a superscript with suggestions from override
.
The completion of the override
does not give suggestions of virtual classes or methods as Tostring().
How do I make these suggestions appear?
This is the method of my superclass I want to overwrite in my subclass:
public virtual void Withdraw(double amount)
{
Balance -= amount + 5.0;
}
In my subclass, there are no suggestions like ToString()
or the method Withdraw() superclass:
This is a question about the editor. Which one are you using?
– Jéf Bueno
Microsoft Visual Studio
– Pazzinato
Override method of which class? How exactly is your code?
– Ronaldo Araújo Alves
I have a virtual method in a superclass and I want to overwrite it in a subclass. In my subclass, when typing override, this virtual method does not appear as a suggestion to autocomplete, and I have to type manually.
– Pazzinato