From the course: Learning ArcGIS Python Scripting (2018)

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Objects, properties, and methods

Objects, properties, and methods - ArcGIS Tutorial

From the course: Learning ArcGIS Python Scripting (2018)

Start my 1-month free trial

Objects, properties, and methods

- [Instructor] In object oriented programming you access objects, such as map documents, which have properties like the author, and methods, such a save a copy. Python has some built-in object classes like numbers and strings, and built-in functions and methods, like round, which is a method for a numeric object, and upper, which is a method for a string object. When I teach this to new Arc Mac users I always call these Python functions, but here I can use the proper terminology. These are methods that work on numeric and string objects. Just to clarify here, a method is a bit of code that works on an object and does something to the object. A function, is also a bit of code that does a particular task. The difference is that a function has to be passed some data to work on, with a method is associated while a particular object. Additional classes and methods are included in site packages, also called modules. Math, string and arcpy are all modules that can be added to Python scripts.…

Contents