笔记(2018-06-19)

  1. protected: only methods of the same package, or its subclasses can access protected instance variables.
  2. private: only methods of the same class (not a subclass) can access.
  3. final: must be assigned an initial value, and can never be assigned a new value after initialization.
  4. object-oriented design principles
  • abstraction
  • encapsulation:封装性
  • modularity
  • hierarchial organization
  1. inheritance继承性
  2. polymorphism多态性
  3. 接口interface和类class
  • 相似点: 一个接口可以有多个方法;
  • 区别:接口不能用于实例化对象;接口没有构造方法;接口中所有的方法必须是抽象方法;接口不能含有成员变量,除了static和final 变量;
    接口不是被类继承,而是被类实现;接口支持多继承。
  1. Cryptography密码学
    cipher 密码
    encryption array 加密矩阵
    decryption array 解密矩阵
  2. single linked list单链表
  3. public class ArrayStack<E>
  • 此处<E>表示泛型,可以为任意变量;
  • 比如HashMap<K,V>,K和V是任意类型。
  1. java.util inculdes:
  • Collection
  • iterator
  • List
  • ListIterator
  • Map
  • Queue
  • Set
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 134,993评论 19 139
  • Class and Interfaces CLASSES and interfaces lie at the he...
    LaMole阅读 925评论 0 1
  • 我不会像Amazing一样给你写小纸条让你感动到快热泪盈眶,但我只是看见你和小妮子在一起我会吃醋……但却还嘴硬。 ...
    Tamia1阅读 121评论 0 0
  • 盼望着,盼望着,双11来了,人们的钱包瘪了。 一切电商都像饿极了的样子,恶狠狠张开了嘴。猫叫嚣起来了,狗吠起来了,...
    糜渊阅读 471评论 0 12
  • 我们的脑子分为两个部分负责理智的部分总是很懒不能长时间工作,第二部分做的决定通常就是不理智的,因为我们的脑子的问题...
    小丨明阅读 547评论 2 0