Implementing Duration Abstract class in a java program
	

Hi I am writing a program in java where I am supposed to use the Duration class which is in a package called javax.xml.datatype. This class is an Abstract class and I am supposed to use this class and its abstract methods to get the time and date. Can someone please explain how to use this class in my program.

There is a function called getsubscriptions() which takes the Duration class as parameter.Can you please tell me how to use an Abstract class as a parameter in the function.

Implementing Duration Abstract class in a java program
===

	

Hi I am writing a program in java where I am supposed to use the Duration class which is in a package called javax.xml.datatype. This class is an Abstract class and I am supposed to use this class and its abstract methods to get the time and date. Can someone please explain how to use this class in my program.

There is a function called getsubscriptions() which takes the Duration class as parameter.Can you please tell me how to use an Abstract class as a parameter in the function.
