Home > Back-end > Overloading "" operators, the realization of two connection string name.
Overloading "" operators, the realization of two connection string name.
Time:09-20
1. In a system development, the need to design a work unit (Department) class, the class has the following requirements: (1) need to encapsulate: number (id: string), name (name: string), set up time (buildtime: int), contact phone number (phone: string), and other properties; (2) in the default constructor (a constructor with no parameters), will set up time is set to: 2012; (3) the overloading a constructor, so that members through parameter initialization object data; (4) define getter () and setter () function, as its members with external data access interface; (5) to encapsulate a Print () function, is responsible for the printing of the value member data, (6) overloading "+" operator, implement two links work unit name, Urgent please do!!