Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions