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-ex
Basic class is SecuredPage.
In subclass HittegodsFinnInnlevSokRes there is getInnlevEDUpdate() method.
This method must be just invoked in HittegodsRegInnlev.
I can do it in static way but because of other things I must use non static method.
Please have a look for below 3 classes.
public clas
Thank you but it doesn't work in my case.
Dnia 26-07-2011 o godz. 15:56 jeffrey napisał(a):
Will this work for you?:
package com.mysamples;
public class ConstructorStudyParent {
String Name;
public ConstructorStudyParent(String name) {
this.Name = name;
}
}
--
WHich i already sent you in the previous mail.
InnlevertEiendel *
There is no class created with above name.
*
*
*
*First class:*
package com;
public class A {
/**
* @param args
*/
InnlevertEiendel inner;
public InnlevertEiendel getInnlevEDUpdate(){
return inner;
}
public void setInnlevE
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)
Can you please advise how to solve it. innlevertEiendel in class B is null
Class A{
public InnlevertEiendel getInnlevEDUpdate(){
return innlevEDUpdate;
}
public void setInnlevEDUpdate(InnlevertEiendel innlevEDUpdate){
this.innlevEDUpdate = innlevEDUpdate;
}
Onclick(){
In class 1st I have static method. I must change it for not static but I have a
problem to pass result of this method to class 2nd.
Can somebody advise.
Class 1st.java
boolean isNyHitt=false;
public boolean isNyHitt(){
return isNyHitt;
}
Class 2nd.java
Hi