Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Object-Oriented Programming (OOP) is one of the most popular methodologies in software development. It offers a powerful model for creating computer programs. It speeds the program development process, improves maintenance, and enhances reusability of programs. This chapter introduces object-oriented methodology and discusses the concepts of objects, classes, messages, and methods. It provides an overview of the phases involved in object-oriented analysis and design. | Introduction to the Object-Oriented Approach Object-Oriented Programming OOP is one of the most popular methodologies in software development. It offers a powerful model for creating computer programs. It speeds the program development process improves maintenance and enhances reusability of programs. This chapter introduces object-oriented methodology and discusses the concepts of objects classes messages and methods. It provides an overview of the phases involved in object-oriented analysis and design. This chapter also explains how to define classes in C . Objectives In this chapter you will learn to fl Explain features of the object-oriented methodology fl Describe the phases of the object-oriented methodology fl Define classes in C Chapter 1 Object-Oriented Methodology Object-orientation is a software development methodology that is based on modeling a real-world system. An object is the core concept involved in object orientation. An object is the representation of a real-word entity or concept. For example an employee a window a car or a bird can be modeled as objects. You can think of an object-oriented model as a collection of objects and their inter-relationships. The Foundation of Object-Orientation Object-orientation is a type of methodology used for building software applications. An object-oriented program consists of classes object and methods. If you were asked to create a classroom you will start by creating a room and defining its boundaries and features. Next you will put together all the components such as chairs tables and books. Similarly if you want to create an aircraft or a high-rise building you can do so by putting together several components or parts. These components or parts are analogous to objects in the object-oriented methodology. The object-oriented methodology in software development revolves around a single concept called the object. Software is developed by breaking the application into component objects. These objects interact