Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

please can anyone explain wats anonymous Constructor?

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!! ranchers!

please can anyone explain wats anonymous Constructor?

will be thankfull to all..

java
 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mithun,

I'm not sure about the term "anonymous constructors" that you have used, But as per my undustanding this term seems to be a name given to instance initializer block defined in the anonymous classes.

As Anonymous classes don't have an constructor so instance initializer blocks are used in the form of constructors to be called when the object is created.

Can fellow ranchers comment on this?
 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mithun,

Have a look at this link

http://www.janeg.ca/scjp/overload/anonymous.html

Let me know if you still have doubt.
 
mithun chakravarthy
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!

Thanks Mr.Sharma n Mr.Shood,

good resource provided..
 
Police line, do not cross. Well, this tiny ad can go through:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic