About Question enthuware.ocpjp.v8.-2-.-1111 :
Posted: Wed Aug 02, 2017 10:49 am
Hello!
For me the first answer is not so clear, could you clarify it:
Thank you.
For me the first answer is not so clear, could you clarify it:
Answer: One of the constructors of each class is called as a result of constructing an object of class C.
But if we create class C like this - new C("string") - also private constructor of class C would be called. So, it is already 2 constructors of class C and not 1 what is mentioned.Explanation: To create any object one and only one constructor of that class and each of the super classes is called.
Thank you.