my dog learned polymorphism*
The moose likes Java in General and the fly likes called super class method using child class instance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "called super class method using child class instance" Watch "called super class method using child class instance" New topic
Author

called super class method using child class instance

siva koti
Greenhorn

Joined: Nov 13, 2012
Posts: 2
Hi All,

Below one is the example code



Please give me solution for this problem?
siva koti
Greenhorn

Joined: Nov 13, 2012
Posts: 2
Thanks ranch team . Hereafter i will use code tag for jave code.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: called super class method using child class instance