• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

OverRiding funda

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I had studied this topic many times but i used to do mistakes in this topic while my Mock exams.can any one give me full details about this topic. Also The Inner class funda also disturbs me alot.

Thanks in Advance
Mridul.
 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Overiding occurs during inheritance that is when you extend a class you can implement a method which has the same method name,parameters and the return type as the super class.This is called overriding a method.

This applies to interfaces also.

For more information you can look into Khalid Mughal for SCJP.
 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey
Inner Class is a class which you declare within any other class
beacuse of the fact that it is Inner(within)
1.It is created each time an instance of its outer class is created.
2.Because of 1. it cannot have static members as we would not be able to create multiple instances of our outer class(STATIC).
3.Since it is Inner it can acces private memebers of the outer class
directly.
There are various drawbacks to using inner classes Size memory.. footprint etc.
These are just the basics aneeway there is lot more that goes into it.
Cheers
reply
    Bookmark Topic Watch Topic
  • New Topic