Results 1 to 3 of 3
  1. #1
    java4amanda is offline Member
    Join Date
    Jan 2012
    Posts
    55
    Rep Power
    0

    Default Interface & Abstract class as Argument???

    Hi all,

    I want to know whether i can pass interface or abstract class reference as arguments?

    Thank you.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,457
    Rep Power
    25

    Default Re: Interface & Abstract class as Argument???

    Yes that is done all the time.
    For example ActionListener and Graphics.

    The object being passed must exist, but its type can be an interface or abstract class.

  3. #3
    java4amanda is offline Member
    Join Date
    Jan 2012
    Posts
    55
    Rep Power
    0

Similar Threads

  1. Interface and abstract class
    By vivekbarange in forum New To Java
    Replies: 8
    Last Post: 07-12-2011, 01:22 PM
  2. Abstract Class & interface
    By suresh.sa in forum New To Java
    Replies: 1
    Last Post: 10-18-2010, 08:25 AM
  3. Replies: 6
    Last Post: 02-11-2009, 10:51 AM
  4. Interface and Abstract Class
    By kian_hong2000 in forum New To Java
    Replies: 1
    Last Post: 08-27-2008, 02:22 PM
  5. Interface Vs Abstract Class
    By javarishi in forum New To Java
    Replies: 5
    Last Post: 06-15-2008, 05:43 AM

Posting Permissions

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