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

Backend to Backend authentification with OAuth2
RxJava2 dispose() doesn't work if called on the object returned by doOnSubscribe()
Receive the result of radio group button selection from confirmed JOptionPane
How to return correct format JsonString
Logs (Log4j) not showing up when system reboots while running Jar file as a service
Is there an example of integrating a Remote SSO to a web application with Spring Security?
Passing parameter from JSTL to servlet through <a href> and jstl tags
JavaFx: including a picture to the left side of a border pane [duplicate]
Using Apache POI to Align Excel Sheet Title
Unable prevent multiple login using the same user name and password using jsf +jpa +oracle
Correct version of class which follows all SOLID Priciples
java.sql.SQLException: null, message from server: “Host 'xxx' is not allowed to connect to this MySQL server”
ConnectException when connecting to server on VM
Find shared library usage
Extracting test data from a generated html file to a xlsx file using selenium java
How to create customized nested MongoDB Query using Morphia?

Categories

HOME
arduino-uno
winforms
isabelle
tizen
gis
rsync
cakephp-2.5
fancybox
convolution
autotools
gitpitch
quickbooks
lombok
django-simple-history
database-replication
reverse-proxy
paging
intentfilter
cloudhub
mps
extjs5
poltergeist
minitab
sql-server-2012-express
xmlreader
wixsharp
dosbox
space-complexity
neuroscience
streamsets
sharefile
twitch
uft-api
ansible-playbook
arena-simulation
rdfs
yt-project
jquery-filter
websitepanel
sigabrt
python-stackless
photobucket
ford-fulkerson
tcpserver
wireshark-dissector
fouc
rgeo
map-projections
splash
event-bubbling
appfabric-cache
mono-embedding
vstest.console.exe
python-green
clicktag
qcodo
xojo
typeof
openlaszlo
ivyde
soundtouch
opcache
lcs
robotics-studio
specification-pattern
gil
first-responder
regsvr32
qtkit
locationlistener
celltable
dmx512
avatar
nerddinner
dbisam
multiple-languages
commodore

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App