presentation3 - who you are. • You are of outside world ....

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

View Full Document Right Arrow Icon
Object Oriented Programming (Continued) Soheil Hassas Yeganeh Computer Engineering Department Sharif University of Technology
Background image of page 1

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

View Full DocumentRight Arrow Icon
Different Bulbs 2
Background image of page 2
Different Bulbs 2 Why we can use different lamps at home?
Background image of page 3

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

View Full DocumentRight Arrow Icon
Different Notebooks One Remote Control 3
Background image of page 4
Different Notebooks One Remote Control Why all of them can be control using just one remote control? 3
Background image of page 5

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

View Full DocumentRight Arrow Icon
Interface 4
Background image of page 6
Interface They offer they same functionality , but with different implementation . We say that they are all of the same type of interface. Different Classes , but Same Interface . Object deFne their interaction with outside world trough its interface . 4
Background image of page 7

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

View Full DocumentRight Arrow Icon
Background image of page 8
Are objects with a same interface of a same type?
Background image of page 9

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

View Full DocumentRight Arrow Icon
Background image of page 10
Does an object inherit the interface of its parent?
Background image of page 11

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

View Full DocumentRight Arrow Icon
Background image of page 12
YES!
Background image of page 13

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

View Full DocumentRight Arrow Icon
Bulb 8
Background image of page 14
Bulb Which parts of bulb can you access ? Can you access the inner parts without breaking it? 8
Background image of page 15

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

View Full DocumentRight Arrow Icon
Notebook 9
Background image of page 16
Notebook Which parts of a notebook can you access ? Can you access the inner parts without breaking it apart? 9
Background image of page 17

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

View Full DocumentRight Arrow Icon
Visibility 10
Background image of page 18
Visibility Objects have accessible or inaccessible parts . This depends on
Background image of page 19

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

View Full DocumentRight Arrow Icon
Background image of page 20
Background image of page 21

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

View Full DocumentRight Arrow Icon
Background image of page 22
Background image of page 23

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

View Full DocumentRight Arrow Icon
Background image of page 24
Background image of page 25

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

View Full DocumentRight Arrow Icon
Background image of page 26
Background image of page 27

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

View Full DocumentRight Arrow Icon
Background image of page 28
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: who you are. • You are of outside world . • You are in his/her/its family . • You are his/her/its child . • You are the object himself/herself/itself. 10 Different Connection Type 11 Different Connection Type You can connect devices to your computer using different interfaces . 11 Overloading 12 Overloading • A behavior is said to be overloaded if the same functionality is provided with different inputs . • Connect Device through USB . • Connect Device through LPT . • Connect Device through COM . 12 Behaviors are changed through the hierarchy 13 Area = A 2 Area = A x B Behaviors are changed through the hierarchy Are of square can be computer in a different way. 13 Area = A 2 Area = A x B Overriding 14 Overriding • The behavior is said to be overrode in a child object when the child redefnes the behavior oF its parent . • getArea in Rectangle . • getArea in Square . 14 Any Questions?...
View Full Document

This note was uploaded on 11/21/2010 for the course COMPUTER S 003 taught by Professor Izadi during the Spring '10 term at Amirkabir University of Technology.

Page1 / 28

presentation3 - who you are. • You are of outside world ....

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

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