Енкапсулация (програмиране): Разлика между версии

Изтрито е съдържание Добавено е съдържание
форматиране: 8x кавички, 8 интервала, А|АБ, тире (ползвайки Advisor)
мРедакция без резюме
Ред 1:
В [[Език за програмиране|езиците за програмиране]], '''енкапсулиране''' се използва за обозначаване на еднаедно от две свързани, но различни понятия, а понякога и в комбинация<ref>Michael Lee Scott, ''Programming language pragmatics'', Edition 2, Morgan Kaufmann, 2006, [//en.wikipedia.org/wiki/Special:BookSources/0126339511 ISBN 0-12-633951-1], p. 481: „Encapsulation mechanisms enable the programmer to group data and the subroutines that operate on them together in one place, and to hide irrelevant details from the users of an abstraction.“</ref><ref name="Dale">Nell B. Dale, Chip Weems, ''Programming and problem solving with Java'', Edition 2, Jones & Bartlett Publishers, 2007, [//en.wikipedia.org/wiki/Special:BookSources/0763734020 ISBN 0-7637-3402-0], p. 396</ref> :
* Механизъм за ограничаване на директен достъп до някои от [[Обект (програмиране)|обектите]] на компонентите.<ref>[//en.wikipedia.org/wiki/John_C._Mitchell John C. Mitchell], ''Concepts in programming languages'', Cambridge University Press, 2003, [//en.wikipedia.org/wiki/Special:BookSources/0521780985 ISBN 0-521-78098-5], p.522</ref><ref name="Pierce">{{cite book|last=Pierce|first=Benjamin|authorlink=Benjamin C. Pierce|title=[[Types and Programming Languages]]|publisher=MIT Press|year=2002|isbn=0-262-16209-1}}</ref>
* Езикова конструкция, която улеснява комбинирането на данни с [[Метод (програмиране)|методи]] (или други функции), извърващи операции върху тези данни.<ref>Wm. Paul Rogers, [http://www.javaworld.com/javaworld/jw-05-2001/jw-0518-encapsulation.html?page=9 ''Encapsulation is not information hiding''], JavaWorld.com, 05/18/01</ref><ref>Thomas M. Connolly, Carolyn E. Begg, ''Database systems: a practical approach to design, implementation, and management'', Edition 4, Pearson Education, 2005, [//en.wikipedia.org/wiki/Special:BookSources/0321210255 ISBN 0-321-21025-5], Chapter 25, „Introduction to Object DMBS“, section „Object-oriented concepts“, p. 814</ref>