Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class SomeClass : AnotherClass //inheritance
- {
- SomeClass() //Constructor
- {
- //Do something when an object of this class is created
- }
- ~SomeClass() //Destructor or Finalizer
- {
- //Do something when an object of this class is getting 'destroyed'
- }
- SomeClass(string name) : base(age, health) //inherit constructor from inherited class
- {
- //Do something when an object of this class is created
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement