Question: This is my code: package app; public class Person { private String name; private float height; private int age; private float weight; public Person(String name,

This is my code:

package app;

public class Person { private String name; private float height; private int age; private float weight; public Person(String name, float height, int age,float weight) { // Establishing variables super(); //creating a parent superclass this.name = name; this.height = height; this.age = age; this.weight = weight; } // Getters and setters, in in groups together /** * @return the name */ public String getName() { return name; }

/** * @param name the name to set */ public void setName(String name) { this.name = name; }

/** * @return the height */ public float getHeight() { return height; }

/** * @param height the height to set */ public void setHeight(float height) { this.height = height; }

/** * @return the age */ public int getAge() { return age; }

/** * @param age the age to set */ public void setAge(int age) { this.age = age; }

/** * @return the weight */ public float getWeight() { return weight; }

/** * @param weight the weight to set */ public void setWeight(float weight) { this.weight = weight; } // Behavior methods, displays test messages public void healthy() { System.out.println("I am healthy()"); } public void young() { System.out.println("I am young()"); } public float running(float distance) { System.out.println("I am running()"); return 0; } // calling all the methods public static void main(String[] args) { Person person = new Person("David", (float) 6.1, 22, (float) 250); System.out.println("My name is " + person.getName()); //Calling the get name variable person.healthy(); person.young(); person.running(10); // calling the behavior methods }

} I need help with using the JavaDoc conventions to (enter /** [return] above each class method, which ones are class methods in my code?

Using JavaDoc conventions using Eclipse (enter /** [return] above each class method), document your class and all methods. Generate the JavaDoc using Eclipse with following steps:

a.Select the Project Generate Javadoc menu options.

b.Select your project.

c.Use the standard doclet.

d.Set the location where you want the JavaDoc generated. The default location is the doc folder inside of the project.

e.Click the Generate button.

f.Validate the documentation by opening the index.html generated by JavaDoc

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!