• Post Reply Bookmark Topic Watch Topic
  • New Topic

function returning class object;;;;;;;;  RSS feed

 
vikash dwivedi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i m new to java language.plz help me
tell me what happend exactly when a function will return any class object.


///// public ResponseForwarding getResponseForwarding() {
return responseForwarding;
}
here the "getResponseForwarding()" fuction is returning the the class object of the "ResponseForwarding".

thax in advance
vikas
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm a bit confused about what you want to know exactly. You have a method called getResponseForwarding() that returns an object of the type ResponseForwarding.

Do you understand how classes, objects and methods work? If you're not sure, here's a good tutorial: Learning the Java Language
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!