answersLogoWhite

0

AllQ&AStudy Guides
Best answer

chieftainship. commandership. companionship. containership. copartnership. councilorship. counselorship. craftsmanship. custodianship.

This answer is:
Related answers

chieftainship. commandership. companionship. containership. copartnership. councilorship. counselorship. craftsmanship. custodianship.

View page

In container class we can only access the public part of base class. For accessing of private and protected part of base class we use friend functions.

View page

In the U.S. Merchant Marine, a high paying union containership can expect to see the following rates for a 4-month voyage:

Ordinary Seaman/Wiper/Messman: $5,000 per month
Able Seaman/Oiler: $8,000 a month
Bosun: $9,500 a month
3rd Mate/3rd Asst. Engineer: $15,000 per month
2nd Mate/2nd Asst. Engineer: $20,000 per month
Chief Mate/1st Asst. Engineer: $25,000 per month
Master/Chief Engineer: $30,000 per month

View page

Take note that there are two types. A bulk cargo and a break bulk cargo. Examples of bulk cargoes are grains or coal. Break bulk cargoes are transported by packages or goods to be manufactured. A large containership of approximately 20,000 TEU would measure 440m x 59m with an estimated deadweight of circa 220,000 tons. 1 TEU is equivalent to 14 metric tons.

TEU means twenty equivalent unit or a unit of cargo capacity.

Containerize vessels carries twenty-footer containers. These containers allow a maximum weight of about 67,000 pounds and a net load of about 61,000 pounds.

View page

Delegation and "containership" relate to embedding objects as opposed to employing inheritance. Both achieve the same thing in different ways but if a class is not intended to be used with inheritance (e.g., it has no virtual destructor), then embedding an object of the class is the only option.

When you embed an object you typically want to expose an interface to that object, but may not wish to expose the object's complete interface. In some cases you may wish to simplify the interface, in others you may wish to enhance it. This is achieved by declaring delegates, which are really nothing more than proxy functions that invoke the object's methods on your behalf, often simplifying the calls to those methods or enhancing them in some way. Delegates are essentially the embedded equivalent of overriding a base class virtual method.

For classes that cannot be inherited, embedding is the only option. However, once embedded, your new class can then be inherited. Thus embedding is often used to provide thin wrappers to enable inheritance. You cannot inherit from the embedded object, of course, but you can inherit from the thin wrapper, provide your thin wrapper includes a virtual destructor along with one or more virtual methods.

The STL containers are typical examples because they are not designed to be inherited from. Many see this as a bad thing, but it is actually a good thing. The STL is not a class hierarchy as such -- it is largely a framework of completely separate types, adaptors and algorithms that are "wired" together by iterators. It is not strictly object-oriented, but then object-oriented programming is not a magic bullet to every type of problem. The STL containers are designed to be both efficient and generic but are not intended to act as base classes. Although the STL could have provided thin wrappers for inheritance purposes, there are so many different ways to implement thin-wrappers that no single wrapper can ever cater for every programmer's needs. Thus it is left to the programmers themselves to create their own specific wrappers as and when they require them, including as much or as little generic behaviour as they need.

As an example, C++ does not include a generic "matrix" data type. Many other languages do, so it seems strange that C++ does not. However, those languages that do provide a matrix data type have to cater for everyone, and this inevitably leads to unavoidable inefficiencies. But with C++, you can simply implement your own to do exactly what you want as efficiently as possible using whatever combination of containers best suits your needs, with as much or as little generics as you required. C++ is nothing if not flexible.

View page
Featured study guide
📓
See all Study Guides
✍️
Create a Study Guide
Search results