Upload
sameh-deabes
View
308
Download
0
Embed Size (px)
Citation preview
OOP in 10 minutesAn introductory topic to OOD
Sameh Deabes
How to write a novel in Russian?
How to write a novel in Russian?• Characters• Words• Phrases• Paragraphs• Syntax• Eloquence = بالغة• Literature = أدب• Novels = روايات
How to write programs like novels?• Programming language:• Characters, Numbers, syntax• Methods, modules
• OOP• OOD• Design Patterns• Enterprise Architecture Patterns• Integration patterns
Concepts of OOP I - Abstraction• Abstraction = تجريد• Simulating real-world objects in computer world• The ability to classify (create classes/blueprints + objects)• الشيء هو ليس الشيء وصفك
Concepts of OOP II - Encapsulation• Encapsulation = = كبسولة في كبسلة• data hiding• access modifiers: public, private, protected, internal, protected internal• hide implementation details
Concepts of OOP III - Inheritance• Inheritance = وراثة• Sharing data and functionality from parents
Concepts of OOP IV - Polymorphism• Polymorphism poly = متعدد, -morphism = أوجه• Many forms @ runtime depending on context
Concepts of OOP IV – Polymorphism (Cont’d)• Types of polymorphic behavior• inheritance/interface polymorphism• Overloading• Generics [parametric polymorphism]• Reflection
Polymorphism demo