Use the super keyword to invoke the base class constructor from the subclass
constructor (which is zero-parameter).
This example explains how this is done -
http://www.javaissues.com/2011/02/how-constructors-work-in-java.html

For more such examples, visit
http://icontraining.info/java-j2ee-code-examples.html


2011/7/26 Rafał Laczek <rafal_lac...@wp.pl>

>
>
> Hi,
>
>
>
> In base class I have constructor with parameters.
>
> In subclass I must have constructor without parameters.
>
> I can’t add non-parameters constructor in basic class.
>
> How to do it?
>
> Regards,
>
> Rafal
>
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Java EE (J2EE) Programming with Passion!" group.
> To post to this group, send email to
> java-ee-j2ee-programming-with-passion@googlegroups.com
> To unsubscribe from this group, send email to
> java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
> For more options, visit this group at
>
> http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en




-- 
-----------------------------------------------------
Dinesh Chanchalani
~USA~ 718-408-4482
~India~ 99696-13412

www.IconWebSolutions.info
www.IconTraining.info
www.JavaIssues.com
www.DotnetIssues.com
 <http://www.DotnetIssues.com>www.RentProjector.in


"The fundamental principle of economic activity is that no man you transact
with will lose; then you shall not"
- Chanakya in Arthashastra

“Success seems to be connected with action. Successful people keep moving.
They make mistakes, but they don’t quit” - Conrad Hilton

कदम निरंतर बढ़ते जिनके, श्रम जिनका अविराम है,
विजय सुनिश्चित होती उनकी, घोषित यह परिणाम है |

-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Reply via email to