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!!

CodePudding user response:


And see if I can use;

CodePudding user response:

reference 1st floor xaioxiaoguai response:

And see if I can use;


Excuse me, brother, the above is to use the IDE?

CodePudding user response:

refer to the second floor gd_dg_st_88 response:
Quote: refer to 1st floor xaioxiaoguai response:


And see if I can use;


Excuse me, brother, the above is to use the IDE?

Written on Ubuntu

CodePudding user response:

reference xaioxiaoguai reply: 3/f
Quote: refer to the second floor gd_dg_st_88 response:

Quote: refer to 1st floor xaioxiaoguai response:


And see if I can use;


Excuse me, brother, the above is to use the IDE?

Written on the Ubuntu

Thank god!
  • Related