This post has been edited by jayman9: 27 October 2008 - 07:23 AM
access specifier of default constructorjava
Page 1 of 1
4 Replies - 6295 Views - Last Post: 29 June 2010 - 08:57 PM
#1
access specifier of default constructor
Posted 26 October 2008 - 11:32 PM
Is their any way to know the access specifier of default constructor
Replies To: access specifier of default constructor
#2
Re: access specifier of default constructor
Posted 27 October 2008 - 02:00 AM
#3
Re: access specifier of default constructor
Posted 20 May 2009 - 04:11 AM
the default constructor has the same access specifier as the class access specifier
the default constructor has the same access specifier as that of the class
the default constructor has the same access specifier as that of the class
This post has been edited by punit verma: 20 May 2009 - 04:12 AM
#4 Guest_mohan reddy*
Re: access specifier of default constructor
Posted 29 June 2010 - 08:35 PM
g00se, on 27 October 2008 - 01:00 AM, said:
the default access specifier for constructor is whatever the class contain the constructor contain same access specifier but this rule is applicable only for public and default classes .
because there is no convention to develop outerclasses as private and protected.
if we want to write your constructor as private or protected you can happily allow to write that constructor.
................MOHAN REDDY.K
#5
Re: access specifier of default constructor
Posted 29 June 2010 - 08:57 PM
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote



|