https://github.com/xatuke/gci-oops
for GCI
https://github.com/xatuke/gci-oops
Last synced: over 1 year ago
JSON representation
for GCI
- Host: GitHub
- URL: https://github.com/xatuke/gci-oops
- Owner: xatuke
- License: apache-2.0
- Created: 2019-12-13T16:07:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-10T17:56:43.000Z (over 6 years ago)
- Last Synced: 2025-03-05T15:07:33.893Z (over 1 year ago)
- Language: Java
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://gitter.im/JBossOutreach/gci)
# java-oop
## Encapsulation
- 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.
Output:

## Polymorphism
- 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.
Output:

## Inheritance
- 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
Output:

Google Code-in and the Google Code-in logo are trademarks of Google Inc.