0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

インターフェース、java interfaceについて

Posted at

インターフェースとは

コンピュータで、異なる機器・装置のあいだを接続して、交信や制御を可能にする装置やソフトウェア

ハードウェアインターフェース

ハードウェア機器同士を接続するためのコネクター(接続機)に関する形状の規格や、送受信の方法を定めたもの
(例)USB

ソフトウェアインターフェース

プログラム同士の間でデータのやり取りをする際の形式を定めたもの
(例)API

ユーザーインターフェース(UI)

コンピューターとそれを使用する人間側を結びつける役割を指している。つまり、パソコンと人間の仲介役。
(例)「ユーザーインターフェースが使いにくい」 = 操作手順が複雑で、操作性が悪い

javaのインターフェース(interface)

Javaで使われるinterfaceとは、クラスに含まれるメソッドの具体的な処理内容を記述せず、変数とメソッドの型のみを定義したもの

インタフェースのメンバー変数は自動的にpublic static finalが付けられるので定数になる。

<宣言>

interface インターフェース名{}

<実装>

class クラス名 implements インターフェース名{}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?