You are on page 1of 1

OOP Assignment #5

1# Give the code for an example when you use a friend function. Using the Phone class which containing a name of a person, and a phone number. Include a constructor and appropriate selector methods.

2# Give the code for an example of an ADT class. Using the class Work whose objects represent working times and salary rates. Having methods as add( .), printSalary(), subtract( compare( or any ), ) other methods.

3# Give the code for an example of a Capability class.

You might also like