jagomart
digital resources
picture1_Python Object Oriented Programming Pdf 190073 | Object Oriented Programming 1


 152x       Filetype PDF       File size 0.12 MB       Source: www.astro.rug.nl


File: Python Object Oriented Programming Pdf 190073 | Object Oriented Programming 1
object oriented programming for python bas roelenga rijksuniversiteit groningen kapteyn institute february 20 2017 bas roelenga rug february 20 2017 1 21 why use object oriented programming code will be ...

icon picture PDF Filetype PDF | Posted on 03 Feb 2023 | 2 years ago
Partial capture of text on file.
                      Object Oriented Programming for Python
                                                      Bas Roelenga
                                                 Rijksuniversiteit Groningen
                                                      Kapteyn Institute
                                                  February 20, 2017
            Bas Roelenga (RUG)                                                                     February 20, 2017      1 / 21
    Why use Object Oriented Programming?
            Code will be more readable and organized
            There is less duplicate code, i.e. a more efficient program
            Makes it easier to write larger programs
            Bas Roelenga (RUG)                                                                     February 20, 2017      2 / 21
    What is Object Oriented Programming?
            Atype of programming which uses object
            These objects can be everything
            What is an object?
                    Astructure that contains data
                    Data from this structure can be manipulated
                    Wecan request the data from this structure
            Bas Roelenga (RUG)                                                                     February 20, 2017      3 / 21
    Syntax structure of Object Oriented Programming
             Constructing a class
  1  class YourClass:
  2      def          i n i t     ( s e l f ) :
      Listing 1: Creating a python class
             Two key things to note
                     class
                     def __init__(self) (constructor)
            Bas Roelenga (RUG)                                                                           February 20, 2017       4 / 21
The words contained in this file might help you see if this file matches what you are looking for:

...Object oriented programming for python bas roelenga rijksuniversiteit groningen kapteyn institute february rug why use code will be more readable and organized there is less duplicate i e a ecient program makes it easier to write larger programs what atype of which uses these objects can everything an astructure that contains data from this structure manipulated wecan request the syntax constructing class yourclass def n t s l f listing creating two key things note init self constructor...

no reviews yet
Please Login to review.