Book a Demo

Author Topic: Virtual Methods  (Read 3126 times)

comp1mp

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Virtual Methods
« on: February 21, 2006, 08:08:06 am »
I do not see anything which would allow me to express a virtual method in EA 6. AM I missing something?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Virtual Methods
« Reply #1 on: February 21, 2006, 08:11:57 am »
Create the method in the Operations dialog. Make sure you check the Abstract box, and then save. That should do the trick.
No, you can't have it!

comp1mp

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Virtual Methods
« Reply #2 on: February 21, 2006, 08:14:05 am »
Problem is, abstract is distinct from virtual, at least in C#. They mean two very different things.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Virtual Methods
« Reply #3 on: February 21, 2006, 09:28:03 am »
Sorry about that, I should know better.

Here's the correct way:
  • Create the method as before, ignoring the Abstract check box (unless you want it to be so marked, of course).
  • Save the method; you will notice that the Advanced button becomes enabled.
  • Click the Advanced button and check Virtual on the resulting dialog.

Hope I didn't lose too many points.

David
No, you can't have it!

comp1mp

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Virtual Methods
« Reply #4 on: February 21, 2006, 10:46:22 am »
No points lost at all  ;). Thanks for the help.