Lecture Software construction - Lab 5: Abstraction, inheritance, and polymorphism in java

Object Orientation involving encapsulation, inheritance, polymorphism, and abstraction, is an important approach in programming and program design. It is widely accepted and used in industry and is growing in popularity in the first and second college-level programming courses. | Software Construction Lab 05 Abstraction, Inheritance, and Polymorphism in Java “Object Orientation involving encapsulation, inheritance, polymorphism, and abstraction, is an important approach in programming and program design. It is widely accepted and used in industry and is growing in popularity in the first and second college-level programming courses.” Some other reasons to move on to Java: Platform-independent software Relatively easy graphics and GUI programming Lots of library packages Free compiler and IDEs Some other reasons to move on to Java: Colleges are teaching it Companies are using it Students want it (Teachers welcome it. ;) (Programmers drink it. :) What are OOP’s claims to fame? Better suited for team development Facilitates utilizing and creating reusable software components Easier GUI programming Easier program maintenance OOP in a Nutshell: A program models a world of interacting objects Objects create other objects and “send messages” to . | Software Construction Lab 05 Abstraction, Inheritance, and Polymorphism in Java “Object Orientation involving encapsulation, inheritance, polymorphism, and abstraction, is an important approach in programming and program design. It is widely accepted and used in industry and is growing in popularity in the first and second college-level programming courses.” Some other reasons to move on to Java: Platform-independent software Relatively easy graphics and GUI programming Lots of library packages Free compiler and IDEs Some other reasons to move on to Java: Colleges are teaching it Companies are using it Students want it (Teachers welcome it. ;) (Programmers drink it. :) What are OOP’s claims to fame? Better suited for team development Facilitates utilizing and creating reusable software components Easier GUI programming Easier program maintenance OOP in a Nutshell: A program models a world of interacting objects Objects create other objects and “send messages” to each other (in Java, call each other’s methods) Each object belongs to a class; a class defines properties of its objects A class implements an ADT; the data type of an object is its class Programmers write classes (and reuse existing classes) Abstraction OOP Encapsulation Inheritance Polymorphism Case Study: Dance Studio Good news: The classes are fairly short In OOP, the number of classes is not considered a problem In a project with 10 classes we need an IDE. Abstraction . relevant to the given project (with an eye to future reuse in similar projects). Abstraction means ignoring irrelevant features, properties, or functions and emphasizing the relevant ones. “Relevant” to what? Abstraction Encapsulation Inheritance Polymorphism Abstraction Encapsulation Encapsulation means that all data members (fields) of a class are declared private. Some methods may be private, too. The class interacts with other classes (called the clients of this class) only

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã 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.