1. Home
  2. Uncategorized
  3. What Is User Method In Java?

What Is User Method In Java?

By WinPie Posted in: Uncategorized

And how to use it? Can u give me some simple example?

Get Chitika Premium
  1. sclera Says

    a method that is defined by you, the writer of the program.

  2. Joshua J Says

    I think what you are looking for is a user defined method. A user defined method is any method that has been defined by the user (just as the name suggests). Example:
    class Dog
    {
    public void speak()
    {
    System.out.println(“Please don’t eat me!”);
    }
    }
    Since I just made that utterly useless “Dog” class, its only method “speak” is my user defined method.

Leave a Reply

You must be logged in to post a comment.

More Interesting Things

©2011 Windows Pie, All rights reserved.