oop - Is my understanding of abstraction correct? -
i've read other posts discussing abstraction , encapsulation, i'm not confident understand them; or maybe understand them feel unsatisfied clarity of content. here understandings of abstraction , encapsulation. in regards accurate/inaccurate/complete/incomplete?
"abstractions data types created programmers extend language when primitive data types insufficient. primitive data types, abstractions have specifications list inputs require , outputs return, specifications not overwhelm programmers methods, functions, , variables used operate on inputs. class example of abstraction. api example of abstraction."
"encapsulation state of having abstract data types — i.e. classes — isolated each other methods, functions, , variables not conflict each other, , programmers can reuse existing class in other programs without being concerned doing interfere rest of program (presuming programmer correctly provides required inputs , correctly handles data returns)."
i prefer robert c. martin's definition in appp:
abstraction elimination of irrelevant , amplification of essential.
Comments
Post a Comment