๐Ÿ˜ฎ๐Ÿ˜ฎ DAY 4- FEATURES OF JAVA ๐Ÿ˜ฎ๐Ÿ˜ฎ

 

Yho Codestars! It's day 4 and I have studied for a couple hours today, I feel overloaded but you know what the goal is? -- FULL STACK JAVA DEVELOPER IN 6months ๐Ÿ˜‰ ๐Ÿ˜Š. 

Let's get started!

JAVA is an Object-Oriented Programming Langauge (OOP). OOP has 4 features.

ABSTRACTION: The main purpose of abstraction as the name implies to hide unnecessary data which helps to reduce the complexity of a program and only display needed information.


ENCAPSULATION: This feature helps to hide sensitive data from users. It increases security, allows flexibility, and increases the control of methods and class attributes. The structure of the objects and implementation of the methods are hidden from the user.


INHERITANCE: This feature allows one class to inherit the feature of another class (includes fields and methods).

The class with the inherited feature is called the SUPER CLASS / PARENT CLASS.

The class that inherited features from another class is called the SUB CLASS / CHILD CLASS

Inheritance features avoid repetition of codes, it rather supports the reusability of existing codes.

There are about 5 types of inheritance. The keyword extends is used to inherit from a class.


POLYMORPHISM: This feature allows the performance of one action in multiple forms. As the name implies it allows a message to be displayed in many forms. This feature has 2 types and they include the Compile-time Polymorphism and the Runtime Polymorphism.


KEYPOINT: The main point so far in short form is that the features of JAVA enable:

  • Code reusability---Inheritance
  • Void of complexity---Abstraction
  • Multiform action performance---Polymorphism
  • Sensitive data protection---Encapsulation


There is more to the features of OOP which includes examples and use cases. However, this page will be improved as I go deeper into the Java topics and lessons.



๐Ÿ‘ฉ‍❤️‍๐Ÿ’‹‍๐Ÿ‘จ  I hope you had fun learning Java with me? ๐Ÿคฉ  Feel free to drop a comment and contribute. โ„‹โ„‹ 





Comments

Popular posts from this blog

๐Ÿ’…๐Ÿ’…MY ACRONYMS- EXTRA NOTES (Series I)๐Ÿ’…๐Ÿ’…

๐ŸŽฏ๐ŸŽฏ DAY 3- INTRODUCTION TO JAVA (II) ๐ŸŽฏ๐ŸŽฏ

♕♕♕My First Blog Post♕♕♕

๐ŸŽฏ๐ŸŽฏDAY 1- INTRODUCTION TO JAVA๐ŸŽฏ๐ŸŽฏ