Constructor (object-oriented programming): Difference between revisions

Content deleted Content added
Copy constructors: fix redirect
Tags: Mobile edit Mobile app edit
No edit summary
Line 83:
In C++, [[C++11#Rvalue references and move constructors|move constructors]] take a value reference to an object of the class, and are used to implement ownership transfer of the parameter object's resources.
 
== Syntax for move constructor ==
 
* [[Java (programming language)|Java]], [[C++]], [[C Sharp (programming language)|C#]], [[ActionScript]], and {{nowrap|[[PHP]] 4}} have a naming convention in which constructors have the same name as the class of which they are associated with.