Build your intuition. Click the correct answer from the options.
Which of the following classes needs a copy constructor for deep-copy implementation?
TEXT/X-JAVA
1class A {
2 int x;
3}
4class B {
5 int x;
6 float y;
7}
8class C {
9 String x;
10}
11class D {
12 Integer x;
13}
Click the option that best answers the question.
- A
- B
- C
- D