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

Java lec constructors

on

  • 393 views

Java

Java

Statistics

Views

Total Views
393
Views on SlideShare
393
Embed Views
0

Actions

Likes
0
Downloads
4
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 Java lec constructors Presentation Transcript

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