Building Parsers with Java

sjm.examples.cloning
Class CannotCloneAnotherType

java.lang.Object
  |
  +--sjm.examples.cloning.CannotCloneAnotherType

public class CannotCloneAnotherType
extends java.lang.Object

This class will not compile; it just shows that an object cannot send clone() to another type of object.


Constructor Summary
CannotCloneAnotherType()
           
 
Method Summary
static void main(java.lang.String[] args)
          Just a demo, this will not compile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CannotCloneAnotherType

public CannotCloneAnotherType()
Method Detail

main

public static void main(java.lang.String[] args)
Just a demo, this will not compile.

by Steve Metsker