{"id":19404277,"url":"https://github.com/dussanfreire/oop-concepts__bird-falcon-flying-example-csharp","last_synced_at":"2025-08-02T20:09:00.404Z","repository":{"id":116509673,"uuid":"351230439","full_name":"DussanFreire/OOP-Concepts__Bird-Falcon-Flying-Example-CSharp","owner":"DussanFreire","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-09T18:10:23.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-25T00:36:53.079Z","etag":null,"topics":["csharp","inheritance","interfaces","oop"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DussanFreire.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-24T21:41:17.000Z","updated_at":"2024-10-11T02:48:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"deaa9bb5-fcf2-4bf2-be1a-e9d1aab220ee","html_url":"https://github.com/DussanFreire/OOP-Concepts__Bird-Falcon-Flying-Example-CSharp","commit_stats":null,"previous_names":["dussanfreire/oop-concepts__bird-falcon-flying-example-csharp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DussanFreire/OOP-Concepts__Bird-Falcon-Flying-Example-CSharp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DussanFreire%2FOOP-Concepts__Bird-Falcon-Flying-Example-CSharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DussanFreire%2FOOP-Concepts__Bird-Falcon-Flying-Example-CSharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DussanFreire%2FOOP-Concepts__Bird-Falcon-Flying-Example-CSharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DussanFreire%2FOOP-Concepts__Bird-Falcon-Flying-Example-CSharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DussanFreire","download_url":"https://codeload.github.com/DussanFreire/OOP-Concepts__Bird-Falcon-Flying-Example-CSharp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DussanFreire%2FOOP-Concepts__Bird-Falcon-Flying-Example-CSharp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268448222,"owners_count":24251999,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","inheritance","interfaces","oop"],"created_at":"2024-11-10T11:33:51.152Z","updated_at":"2025-08-02T20:09:00.377Z","avatar_url":"https://github.com/DussanFreire.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Birds-Flying-OOP-CSharp\n\n## Description\n\nThis project demonstrates basic object-oriented programming (OOP) concepts in C#, focusing on inheritance and interfaces. The example models birds, with a specific example of a falcon that can fly. The code features:\n\n*\tAn abstract Bird class.\n*\tA Falcon class that inherits from Bird and implements the IFly interface.\n*\tThe ability for the falcon to ascend and descend in height.\n\nThis simple project is an excellent starting point for learning OOP principles such as inheritance, abstraction, and interface implementation in C#.\n\n## Structure\n\nThe project contains the following files:\n\n*\tBird.cs: Defines an abstract base class Bird with a protected property SpeciesName and an abstract method MakeNoise().\n*\tFalcon.cs: Implements the Falcon class, inheriting from Bird and implementing the IFly interface. The class provides methods for flying (ascending and descending) and overriding the MakeNoise() method.\n*\tIFly.cs: Declares the IFly interface with properties MaxHeightFlying, CurrentHeight, and methods FlyAscending() and FlyDescending().\n\n## Classes Overview\n\nBird (Abstract Class)\n\nThe Bird class represents a general bird. It is an abstract class, meaning that it cannot be instantiated directly. The class contains:\n\n*\tSpeciesName: A protected string that stores the species name of the bird.\n*\tMakeNoise(): An abstract method that must be implemented by any derived class.\n\n## Falcon (Class)\n\nThe Falcon class inherits from Bird and implements the IFly interface. It adds the following properties and methods:\n\n*\tMaxHeightFlying: Maximum flying height in meters.\n*\tCurrentHeight: Current height of the falcon.\n*\tFlyAscending(): Increases the current height by 10 meters unless the falcon is already at the maximum height.\n*\tFlyDescending(): Decreases the current height by 10 meters unless the falcon is already at ground level.\n*\tMakeNoise(): Overrides the abstract method from Bird to display the falcon’s species and current height.\n\n## IFly (Interface)\n\nThe IFly interface ensures that classes implementing it will have the necessary flying properties and methods:\n\n* MaxHeightFlying and CurrentHeight properties.\n* FlyAscending() and FlyDescending() methods.\n\n## How to Run\n\n1.\tClone the repository:\n```\ngit clone https://github.com/YourUsername/Birds-Flying-OOP-CSharp.git\n```\n2.\tOpen the project in your preferred C# IDE (e.g., Visual Studio or JetBrains Rider).\n3.\tBuild and run the project to see the falcon’s behavior as it flies and makes noise.\n\n## Example Output\n\n```\nI'm a Falcon, my current height is 0[m]\nI'm a Falcon, my current height is 10[m]\nI'm a Falcon, my current height is 20[m]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdussanfreire%2Foop-concepts__bird-falcon-flying-example-csharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdussanfreire%2Foop-concepts__bird-falcon-flying-example-csharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdussanfreire%2Foop-concepts__bird-falcon-flying-example-csharp/lists"}