ichor
asked on
Classes vs. Structs
For a small collection, would it be better to use a class or a struct? Which is faster?
Also, what is the best remedy to fight the ongoing carpal tunnel syndrome?
Please help!
Also, what is the best remedy to fight the ongoing carpal tunnel syndrome?
Please help!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
no one asked you nietod... and no one was looking for a serious answer either. But if you're so sure... lemme see you derive a structure or inherit one...
Woa! I had a complete answer explaining the difference. and also recomending laproscopic surgery That's the first two lines!
Anyway what I had said was
Structurers and Classes 100 percent the same except for one minor difference. Stuctures default to public members and public inheritance and classes default to private members and private inheritence. But these are defaults only. They can be overridden with the public and private declarations. Thus
struct ClasslikeStruct
{
private:
int x;
};
Is just like
class ClassLikeClass
{
int x;
};
As to the carpal tunnel. There is one answer. Surgery. And there is no reason to wait. If you are going to have done, get it done earlier rather than later. The sooner it is done the sooner you get relief. However, make sure you get it done laproscopically. The regular technique is butchery. It involves an incission that runs almost from the wrist to the base of the fingers. That is a huge incission and it takes many weaks to heal and makes it almost impossible to use your hand for about 6 weeks. The laproscopic technique makes a small incission, less than an inch across the wrist. This heals in about 2 weeks and you will be back to using your hand some in about 3 or 4 days and back to normal in about 2 weeks. This also leaves no vissible scar.
If your insurance will not pay for the laproscopic technique, whisc is about an extra $3,000 per hand, contact a lawyer. You will be out of work considerably longer with the other technique and that is grounds for a suit, they will cave in quickly.
VissualRL
No one did ask me. But they asked you and you gave an incorrect answer. enough said.
Anyway what I had said was
Structurers and Classes 100 percent the same except for one minor difference. Stuctures default to public members and public inheritance and classes default to private members and private inheritence. But these are defaults only. They can be overridden with the public and private declarations. Thus
struct ClasslikeStruct
{
private:
int x;
};
Is just like
class ClassLikeClass
{
int x;
};
As to the carpal tunnel. There is one answer. Surgery. And there is no reason to wait. If you are going to have done, get it done earlier rather than later. The sooner it is done the sooner you get relief. However, make sure you get it done laproscopically. The regular technique is butchery. It involves an incission that runs almost from the wrist to the base of the fingers. That is a huge incission and it takes many weaks to heal and makes it almost impossible to use your hand for about 6 weeks. The laproscopic technique makes a small incission, less than an inch across the wrist. This heals in about 2 weeks and you will be back to using your hand some in about 3 or 4 days and back to normal in about 2 weeks. This also leaves no vissible scar.
If your insurance will not pay for the laproscopic technique, whisc is about an extra $3,000 per hand, contact a lawyer. You will be out of work considerably longer with the other technique and that is grounds for a suit, they will cave in quickly.
VissualRL
No one did ask me. But they asked you and you gave an incorrect answer. enough said.
structs and classes are 100