You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: