Báo cáo tài liệu vi phạm
Giới thiệu
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
THỊ TRƯỜNG NGÀNH HÀNG
NÔNG NGHIỆP, THỰC PHẨM
Gạo
Rau hoa quả
Nông sản khác
Sữa và sản phẩm
Thịt và sản phẩm
Dầu thực vật
Thủy sản
Thức ăn chăn nuôi, vật tư nông nghiệp
CÔNG NGHIỆP
Dệt may
Dược phẩm, Thiết bị y tế
Máy móc, thiết bị, phụ tùng
Nhựa - Hóa chất
Phân bón
Sản phẩm gỗ, Hàng thủ công mỹ nghệ
Sắt, thép
Ô tô và linh kiện
Xăng dầu
DỊCH VỤ
Logistics
Tài chính-Ngân hàng
NGHIÊN CỨU THỊ TRƯỜNG
Hoa Kỳ
Nhật Bản
Trung Quốc
Hàn Quốc
Châu Âu
ASEAN
BẢN TIN
Bản tin Thị trường hàng ngày
Bản tin Thị trường và dự báo tháng
Bản tin Thị trường giá cả vật tư
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
NGÀNH HÀNG
NÔNG NGHIỆP, THỰC PHẨM
Gạo
Rau hoa quả
Nông sản khác
Sữa và sản phẩm
Thịt và sản phẩm
Dầu thực vật
Thủy sản
Thức ăn chăn nuôi, vật tư nông nghiệp
CÔNG NGHIỆP
Dệt may
Dược phẩm, Thiết bị y tế
Máy móc, thiết bị, phụ tùng
Nhựa - Hóa chất
Phân bón
Sản phẩm gỗ, Hàng thủ công mỹ nghệ
Sắt, thép
Ô tô và linh kiện
Xăng dầu
DỊCH VỤ
Logistics
Tài chính-Ngân hàng
NGHIÊN CỨU THỊ TRƯỜNG
Hoa Kỳ
Nhật Bản
Trung Quốc
Hàn Quốc
Châu Âu
ASEAN
BẢN TIN
Bản tin Thị trường hàng ngày
Bản tin Thị trường và dự báo tháng
Bản tin Thị trường giá cả vật tư
Thông tin
Tài liệu Xanh là gì
Điều khoản sử dụng
Chính sách bảo mật
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
Lecture Programming languages (2/e): Chapter 13b - Tucker, Noonan
Đang chuẩn bị liên kết để tải về tài liệu:
Lecture Programming languages (2/e): Chapter 13b - Tucker, Noonan
Thanh Liêm
63
14
ppt
Không đóng trình duyệt đến khi xuất hiện nút TẢI XUỐNG
Tải xuống
Chapter 13b - Smalltalk. Smalltalk is a very simple language, both syntactically and semantically. The power of Smalltalk comes from its class libraries, most of which are written in Smalltalk itself. Interestingly, even control structures are objects in Smalltalk. | Programming Languages 2nd edition Tucker and Noonan Chapter 13 Object-Oriented Programming I am surprised that ancient and Modern writers have not attributed greater importance to the laws of inheritance . Alexis de Tocqueville Contents 13.1 Prelude: Abstract Data Types 13.2 The Object Model 13.3 Smalltalk 13.4 Java 13.5 Python 13.3 Smalltalk the original object-oriented language developed in 1970s at Xerox PARC Xerox Alto Smalltalk system OS IDE mouse based GUI Steve Jobs visit General Characteristics Simple language Most of the class libraries written in Smalltalk Everything is an object, even control structures Excluding lexical productions, grammar has 21 productions (3 pages) The value of every variable is an object; every object is an instance of some class. A method is triggered by sending a message to an object. The object responds by evaluating the method of the same name, if it has one. Otherwise the message is sent to the parent object. The process continues until the method is found; otherwise an error is raised. All methods return a value (object). Precedence Unary messages, as in: x negated Binary messages, as in: x + y Keyword messages, as in: Turtle go: length In the absence of parentheses, code is evaluated from left to right. Examples: x + y * z squared a max: b - c anArray at: i put: (anArray at: i + 1) By default, Smalltalk uses infinite precision, fractional arithmetic. 1/3 + 2/6 + 3/9 evaluates to 1. (a > b) ifTrue: [ max := a ] ifFalse: [ max := b ]. [ ] - uninterpreted block Boolean method Distinct from: ifFalse:ifTrue: sum := 0. 1 to: n do: [ :i | sum := sum + (a at: i) ]. sum := 0. a do: [ :x | sum := sum + x ]. sum := 0. i := 1. [ i <= n ] whileTrue: [ sum := sum + (a at: i). i := i + 1]. "True methods" ifTrue: trueBlock ifFalse: falseBlock ^ trueBlock value ifTrue: aBlock ^ aBlock value ifFalse: aBlock ^ nil ifFalse: falseBlock ifTrue: trueBlock ^ trueBlock value Examle: Polynomials Represent Polynomials: 3 x2 + 5x - 7 Representation: | Programming Languages 2nd edition Tucker and Noonan Chapter 13 Object-Oriented Programming I am surprised that ancient and Modern writers have not attributed greater importance to the laws of inheritance . Alexis de Tocqueville Contents 13.1 Prelude: Abstract Data Types 13.2 The Object Model 13.3 Smalltalk 13.4 Java 13.5 Python 13.3 Smalltalk the original object-oriented language developed in 1970s at Xerox PARC Xerox Alto Smalltalk system OS IDE mouse based GUI Steve Jobs visit General Characteristics Simple language Most of the class libraries written in Smalltalk Everything is an object, even control structures Excluding lexical productions, grammar has 21 productions (3 pages) The value of every variable is an object; every object is an instance of some class. A method is triggered by sending a message to an object. The object responds by evaluating the method of the same name, if it has one. Otherwise the message is sent to the parent object. The process continues until the .
TÀI LIỆU LIÊN QUAN
Lecture Programming languages (2/e): Chapter 12b - Tucker, Noonan
Lecture Programming languages (2/e): Chapter 14a - Tucker, Noonan
Lecture Programming languages (2/e): Chapter 15a - Tucker, Noonan
Lecture Programming languages (2/e): Chapter 12d - Tucker, Noonan
Lecture Introduction to computing - Lesson 19: Programming languages
Lecture Programming languages (2/e): Chapter 12a - Tucker, Noonan
Lecture Programming languages (2/e): Chapter 12c - Tucker, Noonan
Lecture Programming languages (2/e): Chapter 13a - Tucker, Noonan
Lecture Programming languages (2/e): Chapter 13b - Tucker, Noonan
Lecture Programming languages (2/e): Chapter 13c - Tucker, Noonan
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.