[Dev-C++] Off:Classes Access Restrictions
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: B. <ama...@uo...> - 2002-10-29 01:58:49
|
Gentelmen,
Sorry about the off-topic question, but let me know if you can help:
1. Consider the following Class
Class any{
public:
any (int x=3D0, int y=3D0, int z=3D0);
void dummy_func1();
void not_so_dummy_func2();
void very_important_func3();
void only_for_bad_boys_func4();
private:
int x;
int y;
int z;
};
2. Let suppose 3 different groups of users (supose programmers):
"The dummies", "The Nerds", and "The Bad Boys"
3. I want to restrict the access to the public functions by group,
that is, dummies programs only accessing func1, nerds programs accessing
func1 to func3, and badboys programs accessing all the functions;
4. Is it possible do this, step 3, in C++?
5. If item 4 is possible, is it possible in Dev-C++? How?
Regards
Andr=E9
|