{"action":"created","comment":{"url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/pulls/comments/207177722","pull_request_review_id":142734063,"id":207177722,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNzE3NzcyMg==","diff_hunk":"@@ -0,0 +1,93 @@\n+package Question1;\r\n+\r\n+/**\r\n+ * Animal specifies the properties of animal and have subclasses as mammal,bird\r\n+ * and reptile.\r\n+ * \r\n+ * @author Arjita\r\n+ *\r\n+ */\r\n+\r\n+public class Animal {\r\n+\tprivate String name, sound;// name and type of sound of animal\r\n+\tprivate int age;// age of animal\r\n+\tprivate TypeOfAnimal type;// type of animal can be selected by TypeofAnimal\r\n+\t\t\t\t\t\t\t\t// enum\r\n+\tprivate Category category;// category can be selected by Category enum\r\n+\r\n+\t/**\r\n+\t * Constructor to initialise the private members\r\n+\t * \r\n+\t * @param name\r\n+\t *            animal name\r\n+\t * @param age\r\n+\t *            animal age\r\n+\t * @param sound\r\n+\t *            animal sound\r\n+\t */\r\n+\tpublic Animal(String name, int age, String sound) {\r\n+\t\tthis.name = name;\r\n+\t\tthis.sound = sound;\r\n+\t\tsetAge(age);\r\n+\r\n+\t\tswitch (this.getClass().getSuperclass().getSimpleName()) {\r","path":"SCF-Assignment-8/Animal.java","position":33,"original_position":33,"commit_id":"35a1aa14ffc4afbc39ad7fb3930c6b61cdc3ddb3","original_commit_id":"35a1aa14ffc4afbc39ad7fb3930c6b61cdc3ddb3","user":{"login":"meta-arpit-pittie","id":20415207,"node_id":"MDQ6VXNlcjIwNDE1MjA3","avatar_url":"https://avatars3.githubusercontent.com/u/20415207?v=4","gravatar_id":"","url":"https://api.github.com/users/meta-arpit-pittie","html_url":"https://github.com/meta-arpit-pittie","followers_url":"https://api.github.com/users/meta-arpit-pittie/followers","following_url":"https://api.github.com/users/meta-arpit-pittie/following{/other_user}","gists_url":"https://api.github.com/users/meta-arpit-pittie/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-arpit-pittie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-arpit-pittie/subscriptions","organizations_url":"https://api.github.com/users/meta-arpit-pittie/orgs","repos_url":"https://api.github.com/users/meta-arpit-pittie/repos","events_url":"https://api.github.com/users/meta-arpit-pittie/events{/privacy}","received_events_url":"https://api.github.com/users/meta-arpit-pittie/received_events","type":"User","site_admin":false},"body":"Why are we using this comparison here?","created_at":"2018-08-02T10:30:23Z","updated_at":"2018-08-02T10:30:24Z","html_url":"https://github.com/meta-arjita-marelay/GET2018/pull/11#discussion_r207177722","pull_request_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/pulls/11","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/meta-arjita-marelay/GET2018/pulls/comments/207177722"},"html":{"href":"https://github.com/meta-arjita-marelay/GET2018/pull/11#discussion_r207177722"},"pull_request":{"href":"https://api.github.com/repos/meta-arjita-marelay/GET2018/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/pulls/11","id":204893869,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0ODkzODY5","html_url":"https://github.com/meta-arjita-marelay/GET2018/pull/11","diff_url":"https://github.com/meta-arjita-marelay/GET2018/pull/11.diff","patch_url":"https://github.com/meta-arjita-marelay/GET2018/pull/11.patch","issue_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/issues/11","number":11,"state":"open","locked":false,"title":"SCF/Assignment-8","user":{"login":"meta-arjita-marelay","id":41181680,"node_id":"MDQ6VXNlcjQxMTgxNjgw","avatar_url":"https://avatars0.githubusercontent.com/u/41181680?v=4","gravatar_id":"","url":"https://api.github.com/users/meta-arjita-marelay","html_url":"https://github.com/meta-arjita-marelay","followers_url":"https://api.github.com/users/meta-arjita-marelay/followers","following_url":"https://api.github.com/users/meta-arjita-marelay/following{/other_user}","gists_url":"https://api.github.com/users/meta-arjita-marelay/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-arjita-marelay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-arjita-marelay/subscriptions","organizations_url":"https://api.github.com/users/meta-arjita-marelay/orgs","repos_url":"https://api.github.com/users/meta-arjita-marelay/repos","events_url":"https://api.github.com/users/meta-arjita-marelay/events{/privacy}","received_events_url":"https://api.github.com/users/meta-arjita-marelay/received_events","type":"User","site_admin":false},"body":"Zoo Management","created_at":"2018-07-30T18:40:44Z","updated_at":"2018-08-02T10:30:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a6269f4b73b713116905c2412a2d838e21524428","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/pulls/11/commits","review_comments_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/pulls/11/comments","review_comment_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/pulls/comments{/number}","comments_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/issues/11/comments","statuses_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/statuses/35a1aa14ffc4afbc39ad7fb3930c6b61cdc3ddb3","head":{"label":"meta-arjita-marelay:SCF/Assignment-8","ref":"SCF/Assignment-8","sha":"35a1aa14ffc4afbc39ad7fb3930c6b61cdc3ddb3","user":{"login":"meta-arjita-marelay","id":41181680,"node_id":"MDQ6VXNlcjQxMTgxNjgw","avatar_url":"https://avatars0.githubusercontent.com/u/41181680?v=4","gravatar_id":"","url":"https://api.github.com/users/meta-arjita-marelay","html_url":"https://github.com/meta-arjita-marelay","followers_url":"https://api.github.com/users/meta-arjita-marelay/followers","following_url":"https://api.github.com/users/meta-arjita-marelay/following{/other_user}","gists_url":"https://api.github.com/users/meta-arjita-marelay/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-arjita-marelay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-arjita-marelay/subscriptions","organizations_url":"https://api.github.com/users/meta-arjita-marelay/orgs","repos_url":"https://api.github.com/users/meta-arjita-marelay/repos","events_url":"https://api.github.com/users/meta-arjita-marelay/events{/privacy}","received_events_url":"https://api.github.com/users/meta-arjita-marelay/received_events","type":"User","site_admin":false},"repo":{"id":140807791,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA4MDc3OTE=","name":"GET2018","full_name":"meta-arjita-marelay/GET2018","owner":{"login":"meta-arjita-marelay","id":41181680,"node_id":"MDQ6VXNlcjQxMTgxNjgw","avatar_url":"https://avatars0.githubusercontent.com/u/41181680?v=4","gravatar_id":"","url":"https://api.github.com/users/meta-arjita-marelay","html_url":"https://github.com/meta-arjita-marelay","followers_url":"https://api.github.com/users/meta-arjita-marelay/followers","following_url":"https://api.github.com/users/meta-arjita-marelay/following{/other_user}","gists_url":"https://api.github.com/users/meta-arjita-marelay/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-arjita-marelay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-arjita-marelay/subscriptions","organizations_url":"https://api.github.com/users/meta-arjita-marelay/orgs","repos_url":"https://api.github.com/users/meta-arjita-marelay/repos","events_url":"https://api.github.com/users/meta-arjita-marelay/events{/privacy}","received_events_url":"https://api.github.com/users/meta-arjita-marelay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meta-arjita-marelay/GET2018","description":null,"fork":false,"url":"https://api.github.com/repos/meta-arjita-marelay/GET2018","forks_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/forks","keys_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/teams","hooks_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/hooks","issue_events_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/issues/events{/number}","events_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/events","assignees_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/assignees{/user}","branches_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/branches{/branch}","tags_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/tags","blobs_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/statuses/{sha}","languages_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/languages","stargazers_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/stargazers","contributors_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/contributors","subscribers_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/subscribers","subscription_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/subscription","commits_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/contents/{+path}","compare_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/merges","archive_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/downloads","issues_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/issues{/number}","pulls_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/pulls{/number}","milestones_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/milestones{/number}","notifications_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/labels{/name}","releases_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/releases{/id}","deployments_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/deployments","created_at":"2018-07-13T06:41:16Z","updated_at":"2018-08-02T08:53:11Z","pushed_at":"2018-08-02T09:45:56Z","git_url":"git://github.com/meta-arjita-marelay/GET2018.git","ssh_url":"git@github.com:meta-arjita-marelay/GET2018.git","clone_url":"https://github.com/meta-arjita-marelay/GET2018.git","svn_url":"https://github.com/meta-arjita-marelay/GET2018","homepage":null,"size":76,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"meta-arjita-marelay:master","ref":"master","sha":"4200fdc157726790f3fb4ee928fe9f642954a8b1","user":{"login":"meta-arjita-marelay","id":41181680,"node_id":"MDQ6VXNlcjQxMTgxNjgw","avatar_url":"https://avatars0.githubusercontent.com/u/41181680?v=4","gravatar_id":"","url":"https://api.github.com/users/meta-arjita-marelay","html_url":"https://github.com/meta-arjita-marelay","followers_url":"https://api.github.com/users/meta-arjita-marelay/followers","following_url":"https://api.github.com/users/meta-arjita-marelay/following{/other_user}","gists_url":"https://api.github.com/users/meta-arjita-marelay/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-arjita-marelay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-arjita-marelay/subscriptions","organizations_url":"https://api.github.com/users/meta-arjita-marelay/orgs","repos_url":"https://api.github.com/users/meta-arjita-marelay/repos","events_url":"https://api.github.com/users/meta-arjita-marelay/events{/privacy}","received_events_url":"https://api.github.com/users/meta-arjita-marelay/received_events","type":"User","site_admin":false},"repo":{"id":140807791,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA4MDc3OTE=","name":"GET2018","full_name":"meta-arjita-marelay/GET2018","owner":{"login":"meta-arjita-marelay","id":41181680,"node_id":"MDQ6VXNlcjQxMTgxNjgw","avatar_url":"https://avatars0.githubusercontent.com/u/41181680?v=4","gravatar_id":"","url":"https://api.github.com/users/meta-arjita-marelay","html_url":"https://github.com/meta-arjita-marelay","followers_url":"https://api.github.com/users/meta-arjita-marelay/followers","following_url":"https://api.github.com/users/meta-arjita-marelay/following{/other_user}","gists_url":"https://api.github.com/users/meta-arjita-marelay/gists{/gist_id}","starred_url":"https://api.github.com/users/meta-arjita-marelay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meta-arjita-marelay/subscriptions","organizations_url":"https://api.github.com/users/meta-arjita-marelay/orgs","repos_url":"https://api.github.com/users/meta-arjita-marelay/repos","events_url":"https://api.github.com/users/meta-arjita-marelay/events{/privacy}","received_events_url":"https://api.github.com/users/meta-arjita-marelay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meta-arjita-marelay/GET2018","description":null,"fork":false,"url":"https://api.github.com/repos/meta-arjita-marelay/GET2018","forks_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/forks","keys_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/teams","hooks_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/hooks","issue_events_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/issues/events{/number}","events_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/events","assignees_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/assignees{/user}","branches_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/branches{/branch}","tags_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/tags","blobs_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/statuses/{sha}","languages_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/languages","stargazers_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/stargazers","contributors_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/contributors","subscribers_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/subscribers","subscription_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/subscription","commits_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/contents/{+path}","compare_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/merges","archive_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/downloads","issues_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/issues{/number}","pulls_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/pulls{/number}","milestones_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/milestones{/number}","notifications_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/labels{/name}","releases_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/releases{/id}","deployments_url":"https://api.github.com/repos/meta-arjita-marelay/GET2018/deployments","created_at":"2018-07-13T06:41:16Z","updated_at":"2018-08-02T08:53:11Z","pushed_at":"2018-08-02T09:45:56Z","git_url":"git://github.com/meta-arjita-marelay/GET2018.git","ssh_url":"git@github.com:meta-arjita-marelay/GET2018.git","clone_url":"https://github.com/meta-arjita-marelay/GET2018.git","svn_url":"https://github.com/meta-arjita-marelay/GET2018","homepage":null,"size":76,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/meta-arjita-marelay/GET2018/pulls/11"},"html":{"href":"https://github.com/meta-arjita-marelay/GET2018/pull/11"},"issue":{"href":"https://api.github.com/repos/meta-arjita-marelay/GET2018/issues/11"},"comments":{"href":"https://api.github.com/repos/meta-arjita-marelay/GET2018/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/meta-arjita-marelay/GET2018/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/meta-arjita-marelay/GET2018/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/meta-arjita-marelay/GET2018/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/meta-arjita-marelay/GET2018/statuses/35a1aa14ffc4afbc39ad7fb3930c6b61cdc3ddb3"}},"author_association":"OWNER"}}
{"actor":{"display_login":"meta-arpit-pittie"}}