jagomart
digital resources
picture1_Python Object Oriented Programming Pdf 186975 | Py13 Inheritance Saarlanduniversity


 120x       Filetype PDF       File size 0.68 MB       Source: access.cs.sci.ku.ac.th


File: Python Object Oriented Programming Pdf 186975 | Py13 Inheritance Saarlanduniversity
introduction to python programming 12 object oriented programming iii inheritance s thater and a friedrich saarland university winter semester 2011 2012 s thater and a friedrich saarland university introduction to ...

icon picture PDF Filetype PDF | Posted on 02 Feb 2023 | 3 years ago
Partial capture of text on file.
                                  Introduction to Python Programming
                                           (12) Object-Oriented Programming III
                                                                   Inheritance
                                                      S. Thater and A. Friedrich
                                                                 Saarland University
                                                    Winter Semester 2011/2012
  S. Thater and A. Friedrich ( Saarland University)        Introduction to Python Programming                    Winter Semester 2011/2012        1 / 23
    Recap: Classes = Blueprints
              Classes are blueprints/designs for objects.
              Creating objects using classes: We instantiate objects.
              Objects are also called instances of a class.
              Objects of the same class have the same basic structure, but they can
              differ in various respects.
  S. Thater and A. Friedrich ( Saarland University)        Introduction to Python Programming                    Winter Semester 2011/2012        2 / 23
    Inheritance
              Somedifferent objects share characteristics / behaviors.
              Inheritance saves us from writing the same code over and over again.
  S. Thater and A. Friedrich ( Saarland University)        Introduction to Python Programming                    Winter Semester 2011/2012        3 / 23
    BankExample
              Savings Account: We record the account number, holder and balance
              with each account. The balance has to be ≥ 0. We can apply an interest
              rate which is defined once for all savings accounts. Money can be
              deposited into the account. The account statement that can be printed
              includes the account number, holder and balance.
              CheckingAccount: Werecordtheaccount number, holder and balance
              with each account. The balance has to be greater than or equal to a
              credit range which is determined on a per-customer basis. For instance, if
              the credit range determined for Anne is $500, her balance may not be
              less than - $500. Money can be deposited into the account. The account
              statement that can be printed includes the account number, holder and
              balance.
                                                      Class Design: On board
  S. Thater and A. Friedrich ( Saarland University)        Introduction to Python Programming                    Winter Semester 2011/2012        4 / 23
The words contained in this file might help you see if this file matches what you are looking for:

...Introduction to python programming object oriented iii inheritance s thater and a friedrich saarland university winter semester recap classes blueprints are designs for objects creating using we instantiate also called instances of class the same have basic structure but they can differ in various respects somedifferent share characteristics behaviors saves us from writing code over again bankexample savings account record number holder balance with each has be apply an interest rate which is dened once all accounts money deposited into statement that printed includes checkingaccount werecordtheaccount greater than or equal credit range determined on per customer basis instance if anne her may not less design board...

no reviews yet
Please Login to review.