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 class Pizza {
/**
* Default constructor
*/
public Pizza() {
}
/**
* @param _price
* @param shape
*/
public void Pizza(double _price, IShape shape) {
// TODO implement here
}
}
I am trying two generate two constructor with different parameters(overloading) . So it should understand that if operation name is same, means it is a constructor, so instead of public void Pizza(double _price, IShape shape) , i should generate public Pizza(double _price, IShape shape) in java.
The text was updated successfully, but these errors were encountered:
I am trying two generate two constructor with different parameters(overloading) . So it should understand that if operation name is same, means it is a constructor, so instead of
public void Pizza(double _price, IShape shape)
, i should generatepublic Pizza(double _price, IShape shape)
in java.The text was updated successfully, but these errors were encountered: