An open API service indexing awesome lists of open source software.

https://github.com/xatuke/gci-oops

for GCI
https://github.com/xatuke/gci-oops

Last synced: over 1 year ago
JSON representation

for GCI

Awesome Lists containing this project

README

          

[![GCI Badge](https://img.shields.io/badge/Google%20Code--in-JBoss%20Community-red?labelColor=2096F3)](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:

![img](https://i.imgur.com/f2KMrIt.png)

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

![img](https://i.imgur.com/aDRUMS4.pngg)

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

![img](https://i.imgur.com/wqFAdNR.png)

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