public interface IShape {
/**
* @return
*/
public abstract double getArea();
}
then added a class Rectangle immplements IShape :
I copied the abstract method getArear() into the class Rectangle from IShape and unchecked the isAbstract box.
public class Rectangle implements IShape {
/**
* @return
*/
public double getArea() {
// TODO implement here
return 0.0d;
}
/**
* @return
*/
public abstract double getArea();
So it should not generate code with 2 methods public double getArea() and public abstract double getArea(); in java.
I added interface IShape :
then added a class Rectangle immplements IShape : I copied the abstract method
getArear()
into the class Rectangle from IShape and unchecked theisAbstract
box.So it should not generate code with 2 methods
public double getArea()
andpublic abstract double getArea();
in java.