Skip to main content

Posts

Showing posts with the label oop

OOP concept in php

Abstraction Abstraction is the key concept in OOP language. Its main goal is to handle the complexity by hiding the unnecessary details from the user. What does it mean. We drive car? Yes. For driving car is we need to know how engine works, how gear box works and how music system work? No, because these are very complex things to understand. It the mechanical engineer/ technician duty to deal with them. For end-user perspective user/driver have to focus on how to drive car / How to shift gear and how to play music using control panel. Now come in programming/coding terminology It is  high level  representation of  object and concept of what is doing rather than how it doing. In simple words abstraction help you create a simpler and easy representation of  something complex.  Let say we want to build system to manage different types of vahicle Now all vahicle a have some common characteristics like branding, manufacturer and also have specific characteristics, p...