Results 1 to 2 of 2
  1. #1
    osval is offline Member
    Join Date
    Jul 2007
    Posts
    26
    Rep Power
    0

    Default question about abstract methods

    I'm new in java and OOP, can you help me?
    I have this question
    Do Abstract methods inherited automatically by any extending class? and if they do, even when I declare them as private?

    thanks in advance

  2. #2
    Seemster is offline Member
    Join Date
    Jul 2007
    Posts
    55
    Rep Power
    0

    Default

    abstract methods are implemented by the extending class. i think your not understanding abstract methods. they basically define a contract between the parent and children object. if i declare a method in the parent class as abstract, i define the signature of that method. all subclasses will be required to implement the abstract method or be defined as an abstract class (since it doesn't implement the abstract method).

Similar Threads

  1. Replies: 6
    Last Post: 10-27-2008, 12:25 AM
  2. Abstract Class with Static Methods
    By bugger in forum New To Java
    Replies: 7
    Last Post: 09-05-2008, 12:20 AM
  3. Newbie question about Static methods
    By SCS17 in forum New To Java
    Replies: 9
    Last Post: 02-06-2008, 08:03 AM
  4. Abstract Class question
    By maa11235 in forum New To Java
    Replies: 1
    Last Post: 01-05-2008, 10:30 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
  •