IN JAVA PROGRAMMING The following code shows compile time error. Can you identify what's wrong with it?
Fantastic news! We've Found the answer you've been seeking!
Question:
IN JAVA PROGRAMMING
The following code shows compile time error. Can you identify what's wrong with it?
class X
{
//Class X Members
}
class Y
{
//Class Y Members
}
class Z extends X, Y
{
//Class Z Members
}
choose the best:
1- In Java, a class can extend more than one class. Class Z is extending two classes - Class X and Class Y. There should be no compile time error.
2-Nothing wrong with this code.
3-There is no constructor defined.
4- In Java, a class can not extend more than one class. Class Z is extending two classes - Class X and Class Y. It is a compile time error in java.
I got confused and need explanation which would be the best answer
Related Book For
Excellence in Business Communication
ISBN: 978-0136103769
9th edition
Authors: John V. Thill, Courtland L. Bovee
Posted Date: