About 10,900 results
Open links in new tab
  1. Java Constructors - GeeksforGeeks

    Mar 26, 2026 · A constructor in Java is a special member that is called when an object is created. It initializes the new object’s state. It is used to set default or user-defined values for the object's …

  2. Java Constructors - W3Schools

    A constructor in Java is a special method that is used to initialize objects. The constructor is called when an object of a class is created. It can be used to set initial values for object attributes:

  3. constructor - JavaScript | MDN - MDN Web Docs

    Jul 20, 2025 · The constructor method is a special method of a class for creating and initializing an object instance of that class.

  4. Constructor (object-oriented programming) - Wikipedia

    In class-based, object-oriented programming, a constructor (abbreviation: ctor) is a special type of function called to create an object. It prepares the new object for use, often accepting arguments that …

  5. Constructors - C# | Microsoft Learn

    Mar 15, 2025 · A constructor is a method called by the runtime when an instance of a class or a struct is created. A class or struct can have multiple constructors that take different arguments.

  6. Constructors in Java - Tpoint Tech

    Feb 10, 2026 · In Java, a constructor is a special method used to initialize objects when a class is created.

  7. Java - Constructors

    Java constructors are special types of methods that are used to initialize an object when it is created. It has the same name as its class and is syntactically similar to a method. However, constructors have …