Introduction - If you have any usage issues, please Google them yourself
Friend function: to define two classes of Boat and Car, both the weight attribute, defined both a friendly member function totalweight the (), calculate the two classes of objects of weight and.