1
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 5 years have passed since last update.

講義の気づき(less,namespace.object指向)

Posted at

講義の復習

先日受けた講義で、覚えていなかった点を中心にまとめました。

less

lessc ~~(LESSファイルの名前).less ~~(CSSファイルの名前).css
というコマンドによって、lessファイルからcssファイルに移すことができる。

名前空間

namespaceと呼ばれる。
クラスの名前が重複していても呼び出させるようにしたもの。
名前空間も被ってしまえば、サブ名前空間を作る。
例えば、namespace asia/korea/busan といった具合である。
名前空間が長い場合は、use~asを用いる。

オブジェクト指向

カプセル化

外部から見て簡単に見えるものを作る。
クラスの中での変更は、そのクラス内のみで行われる。

ポリモーフィズム

異なる動作を同じ命令ですること。

メソッド・プロパティ

クラスの中で使用される関数:メソッド
クラスの中で使用される変数:プロパティ

1
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
1
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?