Logo 
Search:

Java Articles

Submit Article
Home » Articles » Java » FundamentalRSS Feeds

Constructor Modifiers

Posted By: Sheila Wells     Category: Java     Views: 8490

This article explains about constructor modifiers in java with example.

There are three possible modifiers that may precede the declaration of a constructor as listed below.

 Keywords

Description 

 private 

Can be invoked by code in the same class 

 protected 

Can be invoked by code in a subclass or the same package 

 public

Can be invoked by any other class 

  
Share: 

 
 
 

Didn't find what you were looking for? Find more on Constructor Modifiers Or get search suggestion and latest updates.

Sheila Wells
Sheila Wells author of Constructor Modifiers is from Wichita, United States.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!