java


what is the logic of the term 'object' in certain situations


I am a little bit confused with object's logic.
For example:
class A
{
// do some stuff
}
class B
{
public A test()
{
// do some stuff
}
}
or consider this:
class A
{
//do some stuff
}
class B
{
A someVariable;
//do some stuff
}
What does it mean "A test()"? I know it's a type of method, but where's the logic? How can I understand it. I read a lot of theory, but now i am confused with this logic and where can I use it. Help please.
A test() declares a method on the type B that takes no parameters and returns an instance of A.

Related Links

Using Java ProcessBuilder to call node module installed globally
Show input field names from Java Map while mapping to new JSON object in Dataweave
java : annotations before method parameters
Sharing from snapchat to my app
factory method is not flexible enough regarding constructors with different parameters or am I missing something?
how to play a recorded video using video view in another activity
Apache Directory Server LDAP Setting
If this word is found, replace just that word in that line of the file
how to raw bubble like bubble shooter game in libgdx game
Junit - method at the end of each test
Moving custom menuManager at the end of existing RCP app menu
IceFaces extended request scope thread safety
#Async not asynchronous in Groovy
Java: Object reference inside Object that contains original Object reference
Reading large number of bytes from GZIPInputStream
Spring mongodb: Aggregation unable to specify graphLookup.maxDepth

Categories

HOME
cakephp
wso2-am
variables
testng
omnet++
openstack
rsync
filtering
amortized-analysis
jxls
umd
echarts
opengl-es-2.0
upload
basic
designer
try-catch
google-cloud-speech
textfield
introduction
cx-freeze
orleans
sylius
telerik-reporting
crosstab
xpages-ssjs
fish
semantic-analysis
dynamic-featured-image
msys2
javascriptcore
twilio-api
.net-4.0
framemaker
hybridauth
azure-sql-database
ios5
multilingual
starteam
code-search-engine
theano.scan
jna
graphenedb
awt
gzipstream
jvm-languages
password-encryption
midl
vao
http-redirect
user-accounts
rainbowtable
smartcontracts
pnotify
typescript1.8
idisposable
tropo
directory-structure
nodebb
jspdf-autotable
watchconnectivity
deadbolt-2
libpng
probability-density
url-masking
fputcsv
connect-by
holder.js
nsviewcontroller
fouc
citrus-pay
embedded-code
processmodel
fluid-dynamics
inmobi
c++03
python-green
block-device
tt-news
angularjs-ng-click
applescript-objc
websocket4net
preferences
sgen
expected-exception
xceed-datagrid
meteor-velocity
mbr
imdbpy
terminal-services
uv-mapping
pyhdf
django-nonrel
specification-pattern
viewswitcher
custom-backend
spyware
javax.script
self-extracting
table-footer
radcombobox
sudzc

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App