Oop in python

Page 1

Object Oriented Programming

Python


Agenda Class Object Inheritance


Class : general word ..(bird,ship,car,…) Object: specific word..(eagl,…,) Attributes: properties..(wings,) Methods: action,job..(eat,fly)


‫المفروض اعطى كثر من مثال‬ Object

Attributes

Fields Variables

Behavior , Action Method

Class: is a representation of type of object,blue print,template that represent the details of an object


‫‪Class‬‬

‫شكل ‪Shape‬‬

‫‪Objects‬‬ ‫كل منهم له خصائصه المستقله وان كان يشترك مع اى منهم فى لخصائص‬


‫الكائن‬

Object Student No 1

This is an object of the class student

Student No 2

‫الصنف‬

Class student Fields Name Age Address Behavior Learn study

Fields Name :Mohamad Age :21 Address: cairo Behavior learn

Fields Name :Ahmed Age :15 Address: ismailia Behavior Learn study

‫اسم الصنف‬


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.