NobleBlocks

Research indexBook chapter

Constructors

Sharan

Apress eBooks1 Jan 2017

NobleIDark:/48914/w1/20260524/3C1B39DADOI10.1007/978-1-4842-2902-6_9

Paywalled

The full text is at the publisher

You can read the abstract here, or open it at the publisher.

Read at the publisher

Abstract

A constructor is a named block of code that is used to initialize an object of a class immediately after the object is created. The structure of a constructor looks similar to a method. However, the similarity between the two stops right there, in their looks. They are two different constructs and they are used for different purposes.

Discussion

Topics

More

Suggest a correction or report