What is the key word "virtual" in C#?

Asked

Viewed 39 times

0

In C# is seen some class using the keyword virtual in some methods.

Example:

class Person
{

      public virtual string GetName()
      {
            // faz alguma coisa aí
      }
}

I’d like to know what this one’s for virtual.

  • 2

    What a lovely hammer, kkkkkk

  • https://answall.com/questions/25831/o-que-%C3%A9-a-class-attributes-e-m%C3%A9all-virtual

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.