answersLogoWhite

0

It's Emerl

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Engineering

What is friend constructor?

A friend constructor is a constructor that is declared a friend of another class and that grants that constructor private access to the class in which it is declared a friend. Example: class Y { friend char* X::foo (int); // friend function friend X::X (char); // constructors can be friends friend X::~X(); // destructors can be friends }; For more information, see '11.3 Friends' in the current ISO C++ Standard.


What are good names for a robot?

Torex R - X 3 Zoras Miras Surv Bot Something Ending In Bot C - 3PO R2-D2 :L


What is the name of the function which violates the rules of Object Oriented Programming concept?

There is no such function. Some will say friend functions undermine encapsulation however this is errant nonsense. All members of a class are automatically friends of all instances of the same class, and yet no-one ever claims this to undermine encapsulation. To quote Bjarne Stroustrup himself: "Friend" is an explicit mechanism for granting access, just like membership. You cannot (in a standard conforming program) grant yourself access to a class without modifying its source. For example: class X { int i; public: void m(); // grant X::m() access friend void f(X&); // grant f(X&) access // ... }; void X::m() { i++; /* X::m() can access X::i */ } void f(X& x) { x.i++; /* f(X&) can access X::i */ }


New words invented in the last 10 years?

apprently de-friend and chilax are new words x


What type of robot works in a cube shaped work envelope?

Cartesian robots have cube shaped work envelopes. As their name indicates, the linear movements of Cartesian robots are limited to a grid. Built with three axes of movement (x,y,z), these robots are popular because of their precision.