jQuery in Action, 2nd edition*
The moose likes Java in General and the fly likes Is it possible for us to create a sub class object by calling super class constructor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Is it possible for us to create a sub class object by calling super class constructor" Watch "Is it possible for us to create a sub class object by calling super class constructor" New topic
Author

Is it possible for us to create a sub class object by calling super class constructor

naveen maddala
Greenhorn

Joined: Feb 03, 2008
Posts: 23
Hi i am naveen i am new to this forum.Last week i have attended for one interview in that they asked me that is it possible for us to a create sub class object by calling super class constructor.If any body nows this answer please reply to me.
thanks,
naveen.
[ February 03, 2008: Message edited by: naveen maddala ]
Nicholas Jordan
Ranch Hand

Joined: Sep 17, 2006
Posts: 1282
This belongs in Java in General (beginner) - answer is basically yes, but you need to do some more studying before applying for a job to write java.


"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
 
 
subject: Is it possible for us to create a sub class object by calling super class constructor
 
Similar Threads
Regarding explicit casting:
when can you override
init blocks problem
Casting of Reference
downcasting or upcasting of ref variable