Object (computer science): Difference between revisions

Content deleted Content added
m linking
Line 18:
 
==Specialized objects==
An important concept for objects is the [[software design pattern|design pattern]]. A design pattern provides a reusable template to address a common problem. The following object descriptions are examples of some of the most common design patterns for objects.<ref name="R.C.Martin">{{cite web |url=http://www.objectmentor.com/resources/articles/Principles_and_Patterns.pdf |title=Design Principles and Design Patterns |last=Martin |first=Robert C. |author-link=Robert Cecil Martin |access-date=28 April 2017 |url-status=dead |archive-url=https://web.archive.org/web/20150906155800/http://www.objectmentor.com/resources/articles/Principles_and_Patterns.pdf |archive-date=September 6, 2015 }}</ref>
 
*[[Function object]]: an object with a single method (in C++, this method would be the function operator, "operator()") that acts much like a function (like a C/C++ pointer to a function).