Crossfire JXClient, Trunk
Reflection.Dog Class Reference
+ Inheritance diagram for Reflection.Dog:
+ Collaboration diagram for Reflection.Dog:

Public Member Functions

String go ()
 
String sleep ()
 
- Public Member Functions inherited from Reflection.Animal
default String eat ()
 

Detailed Description

Dog class to illustrate the new reflection API. You can see that:

  • the go and sleep methods are not default. go is not the default implementation and the sleep method implementation wins as subtype (according with Inheritance rule. 2)
  • the eat is a simple default method that is not overridden in this class.

Definition at line 93 of file Reflection.java.

Member Function Documentation

◆ go()

String Reflection.Dog.go ( )

Return string representation of the go action for Dog

Returns
string representation of the go action for Dog

Implements Reflection.Animal.

Definition at line 101 of file Reflection.java.

◆ sleep()

String Reflection.Dog.sleep ( )

Return string representation of the sleep action for Dog

Returns
string representation of the sleep action for Dog

Implements Reflection.Animal.

Definition at line 111 of file Reflection.java.


The documentation for this class was generated from the following file: