{"comment":{"url":"https://api.github.com/repos/kyodgorbek/Read-and-Write-in-console-in-Csharp/comments/16274107","html_url":"https://github.com/kyodgorbek/Read-and-Write-in-console-in-Csharp/commit/235c79a5aa01ebfd38fd17079d7abaf01352e127#commitcomment-16274107","id":16274107,"user":{"login":"kyodgorbek","id":10762650,"avatar_url":"https://avatars.githubusercontent.com/u/10762650?v=3","gravatar_id":"","url":"https://api.github.com/users/kyodgorbek","html_url":"https://github.com/kyodgorbek","followers_url":"https://api.github.com/users/kyodgorbek/followers","following_url":"https://api.github.com/users/kyodgorbek/following{/other_user}","gists_url":"https://api.github.com/users/kyodgorbek/gists{/gist_id}","starred_url":"https://api.github.com/users/kyodgorbek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyodgorbek/subscriptions","organizations_url":"https://api.github.com/users/kyodgorbek/orgs","repos_url":"https://api.github.com/users/kyodgorbek/repos","events_url":"https://api.github.com/users/kyodgorbek/events{/privacy}","received_events_url":"https://api.github.com/users/kyodgorbek/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"235c79a5aa01ebfd38fd17079d7abaf01352e127","created_at":"2016-02-23T17:25:22Z","updated_at":"2016-02-23T17:25:22Z","body":"Inheretence in CSharp\r\n\r\nusing System;\r\nusing System.Collections.Generic;\r\nusing System.Configuration;\r\n\r\npublic class Employee\r\n{\r\n\r\n    public string FirstName;\r\n\tpublic  string LastName;\r\n\tpublic string Email;\r\n\t\r\n\tpublic void PrintFullName()\r\n\t{\r\n\t   Console.WriteLine(FirstName + \" \" + LastName);\r\n\t}\t\r\n\r\n}\t\r\n\r\npublic class FullTimeEmployee : Employee\r\n{\r\n public float YearlySalary;\r\n}\t\r\n\r\npublic class PartTimeEmployee : Employee\r\n{\r\n  public   float HourlyRate;\r\n}\t\r\npublic class Program\r\n{\r\n\tpublic static void Main()\r\n\t{\r\n\t   FullTimeEmployee FTE = new FullTimeEmployee();\r\n\t\tFTE.FirstName = \"Pragim\";\r\n\t\tFTE.LastName = \"Tech\";\r\n\t\tFTE.YearlySalary = 50000000;\r\n\t\tFTE.PrintFullName();\r\n\t\r\n\t    PartTimeEmployee PTE = new PartTimeEmployee();\r\n\t\tPTE.FirstName = \"Part\";\r\n\t\tPTE:LastName = \"Time\";\r\n\t\tPTE.HourlyRate = 5000000;\r\n\t\tPTE.PrintFullName();\r\n\t\t\r\n\t\r\n\t}\r\n}\r\n\r\n"}}