Based on the UML diagram, provide implementation only for th…

Based on the UML diagram, provide implementation only for the deep-copy constructor.   public class QB {String name;int number;int totalTDs;public QB(String n, int num, int td){name = n;number = num;totalTDs = td;}//Your code herepublic String toString(){return name+” “+number+” “totalTDs;}…}