Results 1 to 2 of 2
  1. #1
    alacn's Avatar
    alacn is offline Senior Member
    Join Date
    Jun 2010
    UK. near London
    Rep Power

    Default Calling to missing super(); ??

    i was reading over the code on this link

    and if you look at the constructor its making a call to its super class constructor which i assume is calling the object classes constructor, but whats the point of calling the objects class constructor?

    is this common practice?
    Last edited by alacn; 08-16-2010 at 06:39 AM.
    Teaching myself java so that i can eventually join the industry! Started in June 2010

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Bali, Indonesia
    Rep Power


    I think it is a common practice in programming. If we call the parent constructor that mean we want our object initialization to include what the parent does. Then we add a specific constructor code for our new class.

Similar Threads

  1. calling variable using super super..
    By Stephen Douglas in forum New To Java
    Replies: 7
    Last Post: 08-16-2010, 06:12 AM
  2. this() and super() ?
    By bob in forum New To Java
    Replies: 4
    Last Post: 08-13-2009, 04:56 PM
  3. this() vs super()
    By Hevonen in forum New To Java
    Replies: 9
    Last Post: 12-04-2008, 01:43 PM
  4. Super CSV 1.15
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 10-16-2007, 06:37 PM
  5. Use super. or this.
    By Marcus in forum New To Java
    Replies: 1
    Last Post: 07-05-2007, 06:52 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