Very easy java question
I often see this
aaa.bbb(); The above is not hard. aaa might be an instance of a certain class, and bbb() is the method included on the class. myObject.mymethod(); <= this is not hard to understand. But what about something like this? aaa.ccc.bbb();? what is the ccc in that? It would be neither the name of the instance nor the name of the method. Here is an example. R.layout.main What is layout and what is main in that situation? and another example that comes to my mind is System.out.println(); what is out in the above example? Thanks a lot, world-class experts @ Linux Questions!! |
|
Hi -
There are actually *several* different possibilities: EXAMPLE: aaa.bbb.ccc() * member function "ccc()" of object "bbb" in namespace "aaa" ... or ... * member function "ccc()" of object "bbb", which is itself a member of object "aaa" There's also the idiom: * aaa.bbb().ccc() Quote:
|
Quote:
|
Class.object.subroutine()
Subroutine may be a method. |
All times are GMT -5. The time now is 08:41 PM. |