Results 1 to 3 of 3
  1. #1
    krishanu is offline Member
    Join Date
    May 2011
    Posts
    20
    Rep Power
    0

    Default how to use javadoc

    Hi,
    I have a very small program....bellow is the code

    class AbstractDemo {
    public static void main(String args[])
    {
    B b = new B();
    b.callme();
    b.callmetoo();
    }
    }
    abstract class A
    {
    abstract void callme();
    void callmetoo()
    {
    System.out.println("This is concrete method");
    }
    }

    class B extends A
    {
    void callme()
    {
    System.out.println("B's implementation callme");
    }
    }

    Now question is how to create documentation for this program.
    I can specify only a single source file ..
    javadoc override.java

    but its giving me the error ..."No public or private class found to document"

    I am very new to java....so can anybody please tell me how to use this javadoc feature??

    any help is appreciated!!!!

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,800
    Rep Power
    19

    Default

    Well, that class probably ought to be public.
    Java Code:
    public class AbstractDemo  {...}

  3. #3
    krishanu is offline Member
    Join Date
    May 2011
    Posts
    20
    Rep Power
    0

Similar Threads

  1. javadoc question
    By orchid in forum New To Java
    Replies: 3
    Last Post: 02-14-2014, 12:07 AM
  2. Javadoc
    By JavaTheHut in forum New To Java
    Replies: 4
    Last Post: 12-17-2010, 10:33 AM
  3. HOw to run ant javadoc
    By Manfizy in forum New To Java
    Replies: 24
    Last Post: 02-18-2009, 09:59 PM
  4. JavaDoc
    By javarishi in forum Eclipse
    Replies: 1
    Last Post: 04-10-2008, 08:41 AM
  5. what can I do with javadoc
    By christina in forum Advanced Java
    Replies: 1
    Last Post: 07-25-2007, 11:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •