lec20_classes

Lec20_classes - Object oriented programming Motivation Classes and Methods Example Charge class Magic Methods Example Integral class Projects and

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
University of Mississippi Dept. of Physics and Astronomy Phys 503, Dr. Gladden Object oriented programming Motivation Classes and Methods Example: Charge class Magic Methods Example: Integral class Projects and HW08 due Tuesday! Turn in final project idea sheet in today.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
University of Mississippi Dept. of Physics and Astronomy Phys 503, Dr. Gladden Object oriented programming is a philosophy of how to structure code to make it more modular. This allows code to be more easily reused, expanded, and organized. It also allows for much more flexibility because you can define any sort of ‘object’ – meaning you are not limited to built in data structures like floats, integers, strings, lists, … Actually this is just how arrays and matrices are created in numpy. Python is a fully object oriented language. Most modern languages are (C++, Java, …). Older languages like C and Fortran are procedural rather than object oriented.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/05/2010 for the course PHYS phy503 taught by Professor Gladden during the Spring '09 term at Ole Miss.

Page1 / 7

Lec20_classes - Object oriented programming Motivation Classes and Methods Example Charge class Magic Methods Example Integral class Projects and

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online