hii
the other question here.
all interfaces are abstract, am i right?
then how can it be instantiated, n the code here is valid?
interface IFace{}
class CFace implements IFace{}
class Base{}
public class ObRef extends Base{
public static void main(
String argv[]){
ObRef ob = new ObRef();
Base b = new Base();
Object o1 = new Object();
IFace o2 = new CFace();
}}
o1=o2
b=ob
o1=b
and if i insert these lines here all are valid how can ol=o2?
Edited by Corey McGlone: Fixed Misspelled Subject
[ May 28, 2004: Message edited by: Corey McGlone ]