• Post Reply Bookmark Topic Watch Topic
  • New Topic

class  RSS feed

 
roshan menon
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is it possible to declare a class with in the parameters of a method and how to create objects for that class.Ps someone explain this to me.
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If what you are asking is if you can provide the class definition inside the parameter list of a method, IMHO the answer is no.
I'm going to move this to the beginners forum, someone there might hav other ideas though.
Hope this helps.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!