Originally posted by dimple kaushik:
From Khalid A. Mughal:
Which one of the following class definitions is a valid definition of a class that cannot be instantiated?
Select the one correct answer.
b.abstract class Ghost {
void haunt();
}
Originally posted by dimple kaushik:
I have one more question sometimes i get an error
cyclic inheritance involving <someclass>
What does it really mean??
I tired some examples and figured out 3 cases.
1.class A extends A// trying to extend it's own class
2.class A extends B{
class B{} // innerclass inheritance
}
3.class A extends B{}
class B extends A{}// cyclic inheritance
Any other casses?
Just want to make sure.
[ November 20, 2003: Message edited by: dimple kaushik ]
1.class A extends A// trying to extend it's own class
2.class A extends B{
class B{} // innerclass inheritance
}
3.class A extends B{}
class B extends A{}// cyclic inheritance
Any other casses?
Anbudan & Mahalo,<br />Arul<br /> <br />-Not a sun certified Java professional :-)
Originally posted by Arul kumar:
I am wondering, what is cyclic inhertiance ? could any one explain..
Anbudan & Mahalo,<br />Arul<br /> <br />-Not a sun certified Java professional :-)
SCJP2. Please Indent your code using UBB Code
My first bit of advice is that if you are going to be a mime, you shouldn't talk. Even the tiny ad is nodding:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|