[Personal memo] I tried to study object orientation lightly

Self-introduction

This is my first year as a member of society who has just studied Java. I wrote an article like this to understand Java's object orientation (laughs like a note). We are looking for advice on Java.

What is object-oriented?

Let's get into the main subject at once. In the first place, you feel object-oriented at first! ?? (Because I did that too ...)

Object-oriented seems to be one of many ways of thinking in programming lol It seems that the following three are realized by object orientation.

  1. Program "** Independence **"
  2. Program "** Reusability **"
  3. Program "** Extensibility **"

To achieve "independence"

There seems to be "** encapsulation **" as an idea to realize "independence" in an object-oriented manner.

Encapsulation After investigating, it seems that the idea is to combine data (attributes) and methods (procedures) into one object and hide its contents .... To put it simply (I don't know if I can say it, but lol), I think it's a way of thinking that the processing of the program cannot be seen from the outside.

To achieve "reusability"

It seems that there are "** method " and " inheritance **" as an idea to realize "reusability" in an object-oriented manner.

** Method ** A summary of a series of program processes. It seems that it is also called "procedure".

** Inheritance ** The idea of making variables and methods of one class available to another ...

To achieve "extensibility"

There seems to be "** abstraction **" as an idea to realize "extensibility" in an object-oriented manner.

** Abstraction ** It seems that the idea is to extract the common parts of multiple classes and ignore the others ...

Recommended Posts

[Personal memo] I tried to study object orientation lightly
[Must see !!!] I tried to summarize object orientation!
I tried to summarize object orientation in my own way.
I tried to deepen my understanding of object orientation by n%
I tried to develop a DUO3.0 study website.
Personal memo Progate Ruby I (2)
Introduction to JUnit (study memo)
Personal memo Progate Ruby I (1)
I tried to verify yum-cron
I tried to chew C # (indexer)
I tried to interact with Java
I tried to explain the method
I tried to summarize Java learning (1)
I tried to understand nil guard
I tried to summarize Java 8 now
I tried to chew C # (polymorphism: polymorphism)
I tried using Java memo LocalDate
I tried to explain Active Hash
I tried to make a parent class of a value object in Ruby
Try to organize your own object orientation
I tried to introduce CircleCI 2.0 to Rails app
I tried migrating Processing to VS Code
I tried Cassandra's Object Mapper for Java
I tried to summarize Java lambda expressions
I tried to get started with WebAssembly
I tried to solve AOJ's Binary Search
I tried to implement the Iterator pattern
I tried to summarize the Stream API
I tried to build AdoptOpenjdk 11 on CentOS 7
What is Docker? I tried to summarize
I tried to build Ruby 3.0.0 from source
I tried to use Selenium like JQuery
I tried to touch JavaScript Part.2 Object-oriented
I tried to implement ModanShogi with Kinx
How to use Swift's Codable Super personal memo
[Personal memo] I learned a little about modifiers
I tried to verify AdoptOpenJDK 11 (11.0.2) with Docker image
I tried to make Basic authentication with Java
I tried to manage struts configuration with Coggle
[Rails] I tried to raise the Rails version from 5.0 to 5.2
I tried to manage login information with JMX
I tried to organize the session in Rails
java I tried to break a simple block
I tried to link grafana and postgres [docker-compose]
I tried to develop a man-hour management tool
I tried to chew C # (basic of encapsulation)
I tried to implement deep learning in Java
I tried to create a LINE clone app
What a beginner did to understand Object Orientation
I tried to build AdoptOpenJDK 8 (Addition: Amazon Corretto 8)
[Ruby basics] I tried to learn modules (Chapter 1)
I tried to output multiplication table in Java
I tried to link JavaFX and Spring Framework.
I tried to set tomcat to run the Servlet.
I tried to build Micra mackerel in 1 hour!
I tried to develop an application in 2 languages
I tried to create Alexa skill in Java
I tried to develop a website to record expenses.
I tried to implement a server using Netty
I tried to break a block with java (1)