TAILIEUCHUNG - Lecture Object oriented programming - Lecture no 24

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 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 .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.