Skip to content

⚽ Inheritance in soccer player class library, messi, position, defender ,football⚽

Notifications You must be signed in to change notification settings

VanHakobyan/InheritanceInSoccerPlayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Inheritance in soccer player class library:soccer:

  • This is an example of inheritance. According to the data used by football players:soccer:

           player Alba = new player();
           Alba.Position = "midfielder";
           Alba.Nationality = "Spain";
           
           goalkeeper TerStegen = new goalkeeper();
           TerStegen.Age = 24;
           TerStegen.Weight = 85;
           TerStegen.Team = "FC Barcelona";
           TerStegen.Goalkeeping = 88;

           forward Messi = new forward();
           Messi.Age = 29;
           Messi.Weight = 65;
           Messi.Team = "FC Barcelona";
           Messi.Dribbling = 94;
          
           midfielder Mkhitaryan = new midfielder();
           Mkhitaryan.Pass = 81;
           Mkhitaryan.Nationality = "Armenia";
           Mkhitaryan.Dribbling = 87;

           Defender Pique = new Defender();
           Pique.Jump = 92;
           Pique.PhysicalContact = 87;
           Pique.Height = 192;
           Pique.DefensiveProwess = 88;
           //Does the same team?
           CompaerString(TerStegen.Team, Messi.Team);//Yes of course

* For more Armenian football pride Henrikh Mkhitaryan

About

⚽ Inheritance in soccer player class library, messi, position, defender ,football⚽

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages