Results 1 to 2 of 2

Thread: what are "Overloaded Methods and Constructors"

  1. #1
    Join Date
    Jan 2012
    Posts
    12

    what are "Overloaded Methods and Constructors"

    Can someone please explain in enough detail about "Overloaded Methods and Constructors?" I would really appreciate it, thank you.

  2. #2
    Join Date
    Dec 2007
    Posts
    2,291

    Re: what are "Overloaded Methods and Constructors"

    If two methods of a class (whether both declared in the same class, or both inherited by a class, or one declared and one inherited) have the same name but different signatures, then the method name is said to be overloaded. This fact causes no difficulty and never of itself results in a compile-time error. There is no required relationship between the return types or between the throws clauses of two methods with the same name but different signatures. More information can be found here - http://en.wikibooks.org/wiki/Java_Pr...d_Constructors

Similar Threads

  1. Replies: 3
    Last Post: 10-01-2014, 10:40 AM
  2. Replies: 6
    Last Post: 18-05-2010, 12:27 AM
  3. Replies: 3
    Last Post: 25-06-2009, 03:49 AM
  4. The keyword "static", attributes and methods of class in OOP
    By DotNetUser in forum Software Development
    Replies: 3
    Last Post: 05-01-2009, 11:37 AM
  5. Replies: 1
    Last Post: 06-11-2007, 02:18 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,867,791.95130 seconds with 17 queries