Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need two constructor with different parameters #12

Open
Shekharrajak opened this issue Nov 17, 2016 · 0 comments
Open

Need two constructor with different parameters #12

Shekharrajak opened this issue Nov 17, 2016 · 0 comments

Comments

@Shekharrajak
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant