Thư viện đồ án, luận văn, tiểu luận, luận án tốt nghiệp, thạc sĩ, tiến sĩ, cao học
3.1. Html Server control 3.2. Web Server control 3.3. Client-Side Callback
54 trang | Chia sẻ: thuongdt324 | Ngày: 01/12/2020 | Lượt xem: 735 | Lượt tải: 0
• Polymorphism • Downcasting and upcasting • Overloading • Method call binding • Generic programming I. DOWN CASTING UP CASTING rimitive type casting • Java performs automatic primitive type casting when: – Two types are compatible – The destination type is larger then the source type – Example: • int i; • double d = i; • We have to ...
46 trang | Chia sẻ: candy98 | Ngày: 01/12/2020 | Lượt xem: 640 | Lượt tải: 0
• Method overriding • Single inheritance and multiple inheritance • Abstract class and abstract method • Interface and implementation I. METHOD OVERRIDING 1. Concept 2. Final modifier and overriding 3. Object class
38 trang | Chia sẻ: candy98 | Ngày: 01/12/2020 | Lượt xem: 802 | Lượt tải: 0
• Inheritance – Principles – Inheritance hierarchy – Sub class definition • extends – Order of initialization • super 1. Principles • Reusing through class: create a new class by extending the functionality of an existing class – The existing class is called the parent class, or super class, or base class – The new class is called the...
34 trang | Chia sẻ: candy98 | Ngày: 01/12/2020 | Lượt xem: 710 | Lượt tải: 0
• Encapsulation – Visibility scope – Data hiding • Overloading – Principles – Constructor overloading • Aggregation – Principles – Order of initialization • Class usage – Any classes – Java classes I. Encapsulation • Encapsulation: Prevents the code and data being randomly accessed by other code defined outside the class. – Group ...
55 trang | Chia sẻ: candy98 | Ngày: 01/12/2020 | Lượt xem: 712 | Lượt tải: 0
• Data initialization and constructor • Object declaration and initialization • Object usage I. Data initialization • Needs of initialize data before using • Primitive data type: initialize by assignment operator • Object (reference data type): initialize by using constructor. Constructor • Objects are created through constructors – ...
36 trang | Chia sẻ: candy98 | Ngày: 01/12/2020 | Lượt xem: 578 | Lượt tải: 0
• Data abstraction – Overview – Class and instance – Message passing – Visibility • Class building – Declaration • Class declaration • Class member declaration – Data hiding Abstraction • "Abstraction – a concept or idea not associated with any specific instance" – E.g. Mathematics definitions • Two types of abstraction – Control abs...
38 trang | Chia sẻ: candy98 | Ngày: 01/12/2020 | Lượt xem: 634 | Lượt tải: 0
• Operators • Expression • Statement • Block • Control flow statements I. OPERATORS 1. Classification 2. Assignment 3. Arithmetic and substitution 4. Increment and decrement 5. Relational and logic operator 6. Ternary and instance of operator 7. Shift operator
43 trang | Chia sẻ: candy98 | Ngày: 01/12/2020 | Lượt xem: 730 | Lượt tải: 0
• White space • Separators • Comments • Identifiers and keywords • Data types and literals • Comment line arguments I. White spaces • A whitespace is a space, a tab or a new line. • It is used to separate the tokens in a source file and to improve readability • Java don’t require indentation rules – Example: following codes are equival...
40 trang | Chia sẻ: candy98 | Ngày: 01/12/2020 | Lượt xem: 667 | Lượt tải: 0
• Programming • Object-oriented paradigm • Java background – Process of programming using Java technology – Java technology • Basic tools for Java programming I. Programming • Given a problem, how to: – Design an algorithm for solving it – Implement this algorithm as a computer program Needs of programming languages and paradigms • La...
45 trang | Chia sẻ: candy98 | Ngày: 01/12/2020 | Lượt xem: 784 | Lượt tải: 0