Programming & OOP Hossam Elshahawi SP at Microsoft Presidant at MS Tech Club DA
What’s Programming ?
Let’s With socks
Object Oriented Programming “OOP”
Object Oriented Programming Traditional Programming Difficult Maintenance Slow Development Dev. Rule { Time = Money }
Object Oriented Programming Spaghetti Code
Object Oriented Programming OOP Easy Maintenance Fast Development Code Reuse and Recycling Clear Modular Structure for programs Design Benefits mush suitable for large projects
Object Oriented Programming OOP Concept Object Oriented Programming is a methodology to write the program where we specify the code in form of Classes and Objects
Object Oriented Programming Everything is an Object !
Object Oriented Programming Object Attributes Actions Methods behavior Actions Methods behavior Age Age = 20 Name Color Walk Talk Jump Human
Object Oriented Programming Other Example : Color Model Engine Power Color Model Engine Power Turn Left Turn Right Horn Move Turn Left Turn Right Horn Move Actions Attributes
Object Oriented Programming Classes Vs. Objects Class Brand Model Color Engine- Power Brand Model Color Engine- Power Move : - Forward Turn : - Right - Left Move : - Forward Turn : - Right - Left Attributes Actions Object Toyota Corolla Red 200 P.H. Toyota Corolla Red 200 P.H. Move : - Forward Turn : -Right -- Left Move : - Forward Turn : -Right -- Left Attributes Actions A copy From Class Car
Object Oriented Programming Basic Concept of OOPS : There are main three core principles of any object oriented languages INHERITANCE POLYMORPHISM ENCAPSULATION
Object Oriented Programming INHERITANCE
Object Oriented Programming POLYMORPHISM
Object Oriented Programming ENCAPSULATION
Q&A Thank You :)