Results 1 to 5 of 5
  1. #1
    parulmahajan is offline Member
    Join Date
    Jun 2010
    Posts
    5
    Rep Power
    0

    Default final variables in abstract classes

    Hi
    can we have final variables in abstract classes?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

  3. #3
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    Quote Originally Posted by parulmahajan View Post
    Hi
    can we have final variables in abstract classes?
    yes, as long they are assigned at the end of every constructor of the class in which it is declared.

  4. #4
    parulmahajan is offline Member
    Join Date
    Jun 2010
    Posts
    5
    Rep Power
    0

    Default

    can you please elaborate this

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,091
    Rep Power
    20

Similar Threads

  1. Replies: 12
    Last Post: 03-16-2010, 06:45 PM
  2. question about abstract classes
    By TheFlying_Boy in forum New To Java
    Replies: 6
    Last Post: 07-08-2009, 07:19 AM
  3. Final,abstract and static
    By $hr!k@nt in forum Advanced Java
    Replies: 5
    Last Post: 01-09-2008, 05:23 AM
  4. Inverfaces vs Abstract Classes
    By ravian in forum New To Java
    Replies: 1
    Last Post: 11-28-2007, 09:53 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
  •