_____________________________________________
Program Structure in C#.
_____________________________________________
class SuperHero {
private int _powerLevel;
public SuperHero() {
_powerLevel = 0;
}
public SuperHero(int powerLevel) {
this._powerLevel= powerLevel;
}
~SuperHero() {
// Destructor code to free unmanaged resources.
// Implicitly creates a Finalize method
}
}
____________________________________________________________________
____________________________________________________________________
No comments:
Post a Comment