Вы находитесь на странице: 1из 2

PRG 420 Week 5 DQs

DQ1 - Describe step-wise refinement and how you can apply this to your programming assignments. Stepwise refinement is where we start with a high-level outline of our program design, and then gradually refine it to lower levels. Typically this method of showing the development of our design is done with pseudocode, and number labeling. The labels are used to indicate which bits of our program design we are refining further. It should be clear which portions of the implemented code correspond to which portions of the design. And in this class for every week I follow this step-wise refinement to solve the mortgage payment calculator assignments. I every time developed a pseudocode for the problem and the labeled them by numbering and the that numbering labels to complete the assignment. DQ2 - Based on the Framling et al. (2007) article, why is the object-oriented paradigm becoming the dominant software engineering choice? Does the object-oriented paradigm help to enforce the concept that information is stored in one place and needs to be updated or changed only in that place? Why or why not? According to Framling the object-oriented programming (OOP), is a paradigm where we focus real life objects while programming to solve any problem. By focusing real life objects we mean that over solutions revolves around different objects, which represent respective objects in real life situation. We not only write programs to process data, we actually write behaviors of our programming objects, those behaviors are called methods in objected oriented programming. The data elements on which those objects behave are called data-members/fields. By the help of this object-oriented paradigm an object can store all the required information and there behaviors to update or change the particular information of that object. So

PRG 420 Week 5 DQs

the object-oriented paradigm help to enforce the concept that information is stored in one place (object) and needs to be updated or changed only in that place(by using the methods).

DQ3 - What is encapsulation and what is its purpose? Encapsulation is a technique for hiding data and behavior within a class; it's an important part of object-oriented design because it seals the data (and internal methods) safely inside the "capsule" of the class, where it can be accessed only by trusted users (methods of the class). It helps us write clean, modular software. Data hiding is the main purpose of the encapsulation. DQ4 - Based on the Ramsin and Paige (2008) article, what is the object-oriented software development methodology (OOSDM) designed to do? Object-oriented software development methodologies (OOSDM) are specifically aimed at viewing, modeling and implementing the system as a collection of interacting objects, using the specialized modeling languages, activities and techniques needed to address the specific issues of the object-oriented paradigm.

Вам также может понравиться