Java lec constructors
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Java lec constructors

on

  • 437 views

Java

Java

Statistics

Views

Total Views
437
Views on SlideShare
437
Embed Views
0

Actions

Likes
0
Downloads
5
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Java lec constructors Presentation Transcript

  • 1. Constructors JAVA LECTURE BY: LJRABOY
  • 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. Example:
  • 4. Using Constructors and Reset methods