April 2000 QUESTION 5 Total Marks: 15 Marks |
Click here to access other
questions
Click to access |
Consider the following abstract data type for a String type: (c)Write a constructor function for the String class which performs
a deep copy of the object.You may not use any library functions.[5
marks ] (d)Write a function,called Reverse the signature of which is given below,which takes a String object and returns a new String which is the reverse of the original object. You may not use any library functions.[5 marks ] |