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
Giới thiệu
Đăng ký
Đăng nhập
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
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
Giới thiệu
Đăng ký
Đăng nhập
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
Lecture Object oriented programming - Lecture no 24
Đang chuẩn bị liên kết để tải về tài liệu:
Lecture Object oriented programming - Lecture no 24
Hồng Lĩnh
116
7
pptx
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
In this chapter, students will be able to: Define a subclass of JFrame to implement a customized frame window; write event-driven programs using Java's delegation-based event model; arrange GUI objects on a window using layout managers and nested panels; write GUI application programs using JButton, JLabel, ImageIcon, JTextField, JTextArea, JCheckBox, JRadioButton, JComboBox, JList, and JSlider objects from the javax.swing package. | CSC241: Object Oriented Programming Lecture No 24 Previous Lecture Efficient string class Resolve problem while deleting String objects Dynamic Type Information dynamic_cast operator Checking class type pDerv1 = dynamic_cast(pUnknown) Changing Pointer Types pDerv1 = dynamic_cast(pUnknown) typeid operator Class name of object Today’s Lecture Example programs Publication company Distance class Intro to Generic Programming template Example program 1 Imagine the publishing company that markets both book and audiocassette versions of its works create a class publication (private data: title, price) derive two classes: book, which adds a page count (type int) tape, which adds a playing time in minutes (type float) Each of the three classes should have a getdata() function to get its data from the user at the keyboard, and a putdata() function to display the data Write a main() program that creates an array of pointers to publication Cont. In a loop, ask the user for data . | CSC241: Object Oriented Programming Lecture No 24 Previous Lecture Efficient string class Resolve problem while deleting String objects Dynamic Type Information dynamic_cast operator Checking class type pDerv1 = dynamic_cast(pUnknown) Changing Pointer Types pDerv1 = dynamic_cast(pUnknown) typeid operator Class name of object Today’s Lecture Example programs Publication company Distance class Intro to Generic Programming template Example program 1 Imagine the publishing company that markets both book and audiocassette versions of its works create a class publication (private data: title, price) derive two classes: book, which adds a page count (type int) tape, which adds a playing time in minutes (type float) Each of the three classes should have a getdata() function to get its data from the user at the keyboard, and a putdata() function to display the data Write a main() program that creates an array of pointers to publication Cont. In a loop, ask the user for data about a book or tape, and use new to create an object of type book or tape When the user has finished entering the data display the resulting data using a for loop and a single statement such as pubarr[j]->putdata(); Write a program Example program 2 In the Distance class, create an overloaded * operator so that two distances can be multiplied together. Make it a friend function so that you can use such expressions as dist1 = 7.5 * dist2; Write a main() program to test this operator. Write a .
TÀI LIỆU LIÊN QUAN
Lecture Object oriented programming - Lecture No 04
Lecture Object oriented programming - Lecture No 05
Lecture Object oriented programming - Lecture No 03
Lecture Object oriented programming - Lecture no 09
Lecture Object oriented programming - Lecture no 10
Lecture Object oriented programming - Lecture no 11
Lecture Object oriented programming - Lecture no 12
Lecture Object oriented programming - Lecture no 13
Lecture Object oriented programming - Lecture no 14
Lecture Object oriented programming - Lecture no 15
crossorigin="anonymous">
Đã 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.