Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Java lec constructors


Published on


  • Be the first to comment

  • Be the first to like this

Java lec constructors

  1. 1. Constructors JAVA LECTURE BY: LJRABOY
  2. 2. Defining Constructors  A special kind of method that is designed to perform initialization  A method that is called when a new object is created.  Can perform any action you write into its definition  Serve the same purpose with the set method
  3. 3. Example:
  4. 4. Using Constructors and Reset methods