11/2/2022 0 Comments Ohapi principles![]() ![]() ![]() Most of us know that pressing the ON button on the remote will turn on a TV. AbstractionĪre you really aware of how your TV turns on when you press the ON button on the remote? Do you, as a user, need to know the specific sequence of 0’s and 1’s that your remote control emits to signal to the television’s receiver that it should turn on? Or is pressing the ON button good enough?Īre you really aware of how your car starts when you turn your key in the ignition? Do you, as a driver, need to know about the ignition switch, how the voltage from the battery hits the ignition coil, how an engine spark gets directed to the spark plugs, and how that ignites the fuel to make the car run? Or is turning the key and hearing a ding-ding enough?Ībstraction makes technology easier to use. In this post, I want to revisit these four main ideas - these principles of object-oriented programming - discuss why they’re beneficial and explain them with simple, relatable, and practical explanations. The four main principles of object-oriented programming (abstraction, inheritance, encapsulation, and polymorphism). Yes, I could somewhat remember what these concepts were, but knowing when and why to use them was unclear to me. OHAPI PRINCIPLES HOW TOOnly learning the programming aspect, I found myself confused about what good design looked like, how to turn requirements into objects, and when and why to use concepts like abstraction, encapsulation, inheritance, and polymorphism. Object design is comprised of three parts: Analysis, Design, and Programming OHAPI PRINCIPLES CODE
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |