<repo_name>dorset-college-projects/oop-eptia-2021-charp-superheroes<file_sep>/Model/SuperHero.cs
﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SuperHeroe001.Model
{
    public abstract class SuperHero
    {
        public  string power { get; set; }
        public string name { get; set; }

        public SuperHero(string _name, string _power)
        {
            name = _name;
            power = _power;
        }

      
        public override string ToString()
        {
            return $"Super hero: {name}, Power: {power}";

        }
      



    }
}
<file_sep>/Model/Superman.cs
﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SuperHeroe001.Model
{
    public class Superman : SuperHero
    {
        public Superman(string _name, string _power) : base(_name, _power)
        {

        }

    }
}
<file_sep>/Model/Wolverine.cs
﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SuperHeroe001.Model
{
    public class Wolverine : SuperHero
    {
        public Wolverine(string _name, string _power) : base(_name, _power)
        {

        }
    }
}
<file_sep>/Program.cs
﻿using SuperHeroe001.Model;
using System;

namespace SuperHeroe001
{
    class Program
    {
        static void Main(string[] args)
        {



            Batman batman = new Batman("Batman", "Dark Stuff");
            Wolverine wolverine = new Wolverine("wolverine", "regenerative power");
            Superman superman = new Superman("superman", "fly");
            Spiderman spiderman = new Spiderman("Spiderman", "throw spider web");

         
            //Encapsulation .....
            Console.WriteLine(wolverine.ToString());
            Console.WriteLine(superman);
            Console.WriteLine(spiderman);
            Console.WriteLine(batman);

        }
    }
}
<file_sep>/Model/Batman.cs
﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SuperHeroe001.Model
{
    public class Batman : SuperHero 
    {
        public Batman(string _name, string _power) : base(_name, _power)
        {

        }
    
    }
}
