• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/5

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

5 Cards in this Set

  • Front
  • Back
What is a destructor?
A destructor is used to clean up you class before the Garbage Collector destroys you object.
What is the method signature for a destructor?
Its method signature must begin with a tilde, ~ and the name of the class that the destructor is in.
Must you always create a destructor?
No. The Garbage Collector will always manage the destruction for you. You should only create a destructor if you need to clean up before Garbage Collector destroys your object.
How do you force the Garbage Collector to run?
GC.Run
Can you determine when your object is destroyed?
No, you cannot predict when the GC will destroy your object.