-
class
Passing an object to a method example
With this example we are going to demonstrate how to pass an object to a method. In short, we have…
Read More » -
class
Run time Type Identification example
In this example we shall show you how to check a type identification in run time. To check a type identification…
Read More » -
class
Anonymous inner class
This is an example of how to use an anonymous inner class inside a class. In order to use an…
Read More » -
class
Abstract class example
With this example we are going to demonstrate how to create and use an abstract class. In short, we have…
Read More » -
class
Use the keyword this to call a constructor
In this example we shall show you how to use the keyword this to call a constructor in a class.…
Read More » -
class
Reference to an inner class
This is an example of how to make a reference to an inner class. In order to make a reference to…
Read More » -
class
Singleton Object example
With this example we are going to demonstrate how to create and use a Singleton class. The Singleton’s purpose is…
Read More » -
class
Overriding Fields
In this example we shall show you how to override a super class field in a subclass. To override a super…
Read More » -
class
Generic Constructor
This is an example of how to use a generic constructor of a class. In order to see how a generic…
Read More » -
class
Get the super-class of an object
In this example we shall show you how to get the superclass of an Object. We can try to get…
Read More »