{"id":16585367,"url":"https://github.com/xatuke/gci-oops","last_synced_at":"2025-03-06T06:23:16.070Z","repository":{"id":123709908,"uuid":"227875643","full_name":"xatuke/gci-oops","owner":"xatuke","description":"for GCI","archived":false,"fork":false,"pushed_at":"2020-01-10T17:56:43.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T15:07:33.893Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xatuke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-12-13T16:07:23.000Z","updated_at":"2023-11-02T06:27:27.000Z","dependencies_parsed_at":"2023-10-03T13:49:57.063Z","dependency_job_id":null,"html_url":"https://github.com/xatuke/gci-oops","commit_stats":null,"previous_names":["xatuke/java-oop","xatuke/gci-oops"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xatuke%2Fgci-oops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xatuke%2Fgci-oops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xatuke%2Fgci-oops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xatuke%2Fgci-oops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xatuke","download_url":"https://codeload.github.com/xatuke/gci-oops/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242158270,"owners_count":20081225,"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","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":[],"created_at":"2024-10-11T22:47:46.198Z","updated_at":"2025-03-06T06:23:16.036Z","avatar_url":"https://github.com/xatuke.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GCI Badge](https://img.shields.io/badge/Google%20Code--in-JBoss%20Community-red?labelColor=2096F3)](https://gitter.im/JBossOutreach/gci)\r\n\r\n# java-oop\r\n## Encapsulation\r\n- Encapsulation can be achieved by: Declaring all the variables in the class as private and writing public methods in the class to set and get the values of variables.\r\nOutput:\r\n\r\n  ![img](https://i.imgur.com/f2KMrIt.png)\r\n\r\n\r\n## Polymorphism\r\n- Polymorphism is the ability of an object to take on many forms. The most common use of polymorphism in OOP occurs when a parent class reference is used to refer to a child class object.\r\n  Output:\r\n  \r\n  ![img](https://i.imgur.com/aDRUMS4.pngg)\r\n  \r\n## Inheritance\r\n- The concept is derived from biology that child inherits some features from the parents, same here in java the child class inherits the features from the parent class\r\n  Output:\r\n  \r\n  ![img](https://i.imgur.com/wqFAdNR.png)\r\n  \r\n  Google Code-in and the Google Code-in logo are trademarks of Google Inc.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxatuke%2Fgci-oops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxatuke%2Fgci-oops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxatuke%2Fgci-oops/lists"}