Booa8 Slide 01


Published on

Published in: Business
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • Booa8 Slide 01

    1. 1. Buliding Object-Oriented Applications in PowerBuilder Module 1: Introduction
    2. 2. Introductions and Expectations
    3. 3. What can you expect? <ul><li>In this hands-on course, you learn how to use and exploit the object-oriented features of PowerBuilder through a combination of group discussion and in-class labs. </li></ul><ul><li>This course introduces object-oriented application development concepts and outlines object-oriented programming techniques in PowerBuilder. You’ll learn how to implement inheritance, polymorphism, generic object messaging, and encapsulation. You’ll also examine how PowerBuilder works internally with object instantiation, source code, and memory pools. Proper use of the object-oriented development techniques presented in this course maximizes reuse - both in the current application and in future development projects. </li></ul>
    4. 4. Course Objectives <ul><li>Upon successful completion of the Building Object-Oriented Applications using PowerBuilder .0, you should be able to: </li></ul><ul><ul><li>Use Object-oriented construction techniques to help design and code PowerBuilder applications </li></ul></ul><ul><ul><li>Implement Non-Visual User Objects </li></ul></ul><ul><ul><li>Put inheritance, polymorphism, generic object messaging, exception handling and encapsulation into practice </li></ul></ul>
    5. 5. Class Materials <ul><li>Student Files CD with classroom setup for labs and PowerBuilder documentation </li></ul><ul><li>Student Guide </li></ul><ul><ul><li>The student guide contains more material than the slides the instructor will use, allowing the student to spend more time listening to the instructor. </li></ul></ul><ul><ul><li>The student guide follows the slides in their order and all slide graphics will match the graphics in the student guide </li></ul></ul><ul><ul><li>Slides that contain bulletted information in the slide will have explanatory text in the student guide. </li></ul></ul>
    6. 6. What is Object-Oriented Programming? <ul><li>In an object-oriented environment, your program consists of a number of objects that interact by making requests of each other. These objects are discrete, self-contained application components that combine characteristics ( properties ) and behaviors ( methods ). </li></ul><ul><li>Incorporates 3 Characteristics </li></ul><ul><ul><li>Encapsulation </li></ul></ul><ul><ul><li>Polymorphism </li></ul></ul><ul><ul><li>Inheritance </li></ul></ul>
    7. 7. Encapsulation <ul><li>Bundles object properties and methods together. </li></ul><ul><li>Treats each object as a package that contains the definition of the object's properties and methods. </li></ul><ul><li>One aspect of encapsulation, known as information hiding , prevents objects from directly altering or accessing the property values of another object, giving the encapsulated object control over its property values. </li></ul>  Module 7 will examine Encapsulation in detail as it is implemented in a PowerBuilder Application or component.
    8. 8. Polymorphism <ul><li>Polymorphism is the ability to hide different object implementations behind a common interface. </li></ul><ul><li>Polymorphism allows different objects to respond differently to the same message. </li></ul>Module 12 will examine Polymorphism in detail as it is implemented in a PowerBuilder Application or component.
    9. 9. Inheritance <ul><li>An object class can be inherited from another class. </li></ul><ul><li>The inherited or descendent object has all the instance variables, events, and functions of the ancestor. </li></ul><ul><li>You can augment the descendant by adding more variables, events, and functions. </li></ul><ul><li>If you change the ancestor, even after editing the descendant, the descendant incorporates the changes. </li></ul>
    10. 10. But … <ul><li>PowerBuilder does not force you to be Object-Oriented </li></ul><ul><li>While it does not force you to be Object-Oriented, there are many benefits to be gained by maintaining this discipline … </li></ul>
    11. 11. Why Build Object-Oriented Applications? <ul><li>Many aspects of programming are redundant </li></ul><ul><li>Building and testing an application takes too long </li></ul><ul><li>Object-oriented programming encourages and facilitates code reuse </li></ul><ul><li>Distributed Programming requires object-oriented techniques </li></ul><ul><li>Reusable business logic destined for Web Clients use demands object-oriented techniques. </li></ul>
    12. 12. Advantages of Code and Design Reuse <ul><li>Leverages work of other programmers / designers </li></ul><ul><li>Reduces testing time </li></ul><ul><li>Improves quality </li></ul><ul><li>Responds more quickly to change </li></ul><ul><li>Can develop subsequent applications more quickly </li></ul>
    13. 13. Skills You Will Gain <ul><li>Use PowerBuilder to construct object-oriented applications </li></ul><ul><li>Exploit the object-oriented features and strengths of PowerBuilder </li></ul><ul><li>Write generic code </li></ul>
    14. 14. Summary <ul><li>Object-oriented coding facilitates code reuse. </li></ul><ul><li>Code reuse speeds up many areas of application development. </li></ul>
    15. 15. Summary Questions
    16. 16. Lab Setup <ul><li>An executable is provided that is a sample solution of the application to be constructed during the labs in this course C:Sybase CoursesBooaPB8SolutionsFinal. In this lab, you run this Order Entry application and observe its behavior. </li></ul>