• Kĩ thuật lập trình - Object - Oriented programming: InheritanceKĩ thuật lập trình - Object - Oriented programming: Inheritance

    At the design stage in an object-oriented system, the designer often finds that certain classes are closely related. The designer should “factor out” common instance variables and methods and place them in a superclass. Then the designer should use inheritance to develop subclasses, specializing them with capabilities beyond those inherited from th...

    ppt89 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 823 | Lượt tải: 0

  • Kĩ thuật lập trình - Classes and objects: A deeper lookKĩ thuật lập trình - Classes and objects: A deeper look

    Not initializing a final instance variable in its declaration or in every constructor of the class yields a compilation error indicating that the variable might not have been initialized. The same error occurs if the class initializes the variable in some, but not all, of the class’s constructors.

    ppt118 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 819 | Lượt tải: 0

  • Kĩ thuật lập trình - ArraysKĩ thuật lập trình - Arrays

    Command-line arguments Pass arguments from the command line String args[] Appear after the class name in the java command java MyClass a b Number of arguments passed in from command line args.length First command-line argument args[ 0 ]

    ppt100 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 640 | Lượt tải: 0

  • Kĩ thuật lập trình - Methods: a deeper lookKĩ thuật lập trình - Methods: a deeper look

    Enumerations Programmer-declared types consisting of sets of constants enum keyword A type name (e.g. Status) Enumeration constants (e.g. WON, LOST and CONTINUE) cannot be compared against ints

    ppt88 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 626 | Lượt tải: 0

  • Kĩ thuật lập trình - Control statements: part 2Kĩ thuật lập trình - Control statements: part 2

    State Machine Diagrams Commonly called state diagram Model several states of an object Show under what circumstances the object changes state Focus on system behavior UML representation State Rounded rectangle Initial state Solid circle Transitions Arrows with stick arrowheads

    ppt95 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 632 | Lượt tải: 0

  • Kĩ thuật lập trình - Control statements: part 1Kĩ thuật lập trình - Control statements: part 1

    Initializing local variables when they are declared helps the programmer avoid any compilation errors that might arise from attempts to use uninitialized data. While Java does not require that local variable initializations be incorporated into declarations, it does require that local variables be initialized before their values are used in an expr...

    ppt86 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 625 | Lượt tải: 0

  • Kĩ thuật lập trình - Introduction to classes and objectsKĩ thuật lập trình - Introduction to classes and objects

    Package javax.swing Contains classes to help create graphical user interfaces (GUIs) Contains class JOptionPane Declares static method showMessageDialog for displaying a message dialog

    ppt78 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 572 | Lượt tải: 0

  • Kĩ thuật lập trình - Introductionto java applicationsKĩ thuật lập trình - Introduction to java applications

    By convention, variable-name identifiers begin with a lowercase letter, and every word in the name after the first word begins with a capital letter. For example, variable-name identifier firstNumber has a capital N in its second word, Number.

    ppt99 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 838 | Lượt tải: 0

  • Kĩ thuật lập trình - Introduction to computers, the internet and the world wide webKĩ thuật lập trình - Introduction to computers, the internet and the world wide web

    Object-oriented design (OOD) Models software in terms similar to those used to describe real-world objects Class relationships Inheritance relationships Models communication among objects Encapsulates attributes and operations (behaviors) Information hiding Communication through well-defined interfaces Object-oriented language Programming ...

    ppt60 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 629 | Lượt tải: 0

  • Kĩ thuật lập trình - Chương 2: Sử dụng chương trình ccs và pickitKĩ thuật lập trình - Chương 2: Sử dụng chương trình ccs và pickit

    Trong chương trình thì hành đầu tiên là thư viện của vi điều khiển PIC18F4550, file này chính là file gốc của phần mềm CCS. Hàng lệnh thứ 2 là khai báo cấu hình: không sử dụng bộ định thời giám sát (No Watchdog Timer: NOWDT), sử dụng bộ định thời kéo dài thời gian reset vi điều khiển thêm 72ms để chờ nguồn điện ổn định sau khi vi điều khiển đượ...

    pdf6 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 671 | Lượt tải: 0