Advertisement
gmansano

Atividade 6 - Exercício 3 [Mago.cs]

Sep 30th, 2020
536
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Atividade6Ex3
  4. {
  5.     public abstract class Mago : Heroi
  6.     {
  7.         protected int mana;
  8.  
  9.         public int mana_p
  10.         {
  11.             get { return mana; }
  12.             set { if (value > 0) mana = value; }
  13.         }
  14.  
  15.         public abstract string AtaqueMagico();
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement