Live briefing
Everything about Constructor (object-oriented programming)
Special function called to create an object
In class-based, object-oriented programming, a constructor is a special type of function called to create an object. It prepares the new object for use, often accepting arguments that the constructor uses to set required member variables. Wikipedia →
đź§ Start here: a 6-step reading path
- Read the overview: Constructor (object-oriented programming)A 5-minute orientation
- Pick up a classic book: Fundamentals of Computer Programming with CSharp Free Book (by Nakov & Co.)The most-reprinted book on the subject
- Read the landmark paper: Constraint-Based Object-Oriented ProgrammingCited 3 times
- Go sideways: C Sharp syntaxA closely related topic
- Go sideways: C++ classesA closely related topic
đź“– Definitions
No dictionary entry for this exact phrase.
🗂️ The subject at a glance
🏆 Landmark papers (most cited)
📚 Books worth reading
Fundamentals of Computer Programming with CSharp Free Book (by Nakov & Co.)Svetlin Nakov · 2013
Ranked by number of editions on Open Library, a rough measure of how lasting a book is.
đź”— Related topics
- C Sharp syntax This article describes the syntax of the C# programming language. The features described are compatible with .NET Framework and Mono. An identifier is…
- C++ classes A class in C++ is a user-defined type or data structure declared with any of the keywords class, struct or union (the first two are collectively referred…
- Java syntax The syntax of Java is the set of rules defining how a Java program is written and interpreted. The syntax is mostly derived from C and C++. Unlike C++…
- Method (computer programming) A method in object-oriented programming (OOP) is a procedure associated with an object, and generally also a message. An object consists of state data…
- C++11 C++11 is a version of a joint technical standard, ISO/IEC 14882, by the International Organization for Standardization (ISO) and International Electrotechnical…
- Default constructor In computer programming languages, the term default constructor can refer to a constructor that is automatically generated by the compiler in the absence…
- Generic programming Generic programming is a style of computer programming in which algorithms are written in terms of data types to-be-specified-later that are then instantiated…
- Function object In computer programming, a function object is a construct allowing an object to be invoked or called as if it were an ordinary function, usually with the…