471,071 Members | 1,173 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,071 software developers and data experts.

error: `Klasa1' is inaccessible

I don't know where and why the error is.

class Klasa1
int A, D, M, T;
Klasa1(int a = -1, int d = -1, int m = -1, int t = -1);
int PA();
int PD();
int PM();
int PT();
class Klasa2 : public KlasaA, Klasa1
enum1 m_enum1;
Klasa2(enum1, KlasaA&, Klasa1&);
class Klasa3 : public Klasa2
enum2 m_enum2;
Klasa3(enum1, KlasaA&, Klasa1&, enum2);
enum2 Enum2();

Klasa2::Klasa2(enum1 pan, KlasaA nag, Klasa1 p) : m_enum1(pan),
KlasaA(nag), Klasa1(p) {}
Klasa2::Klasa2(Klasa2 kopiowana) : m_enum1(kopiowana.m_enum1),
KlasaA(kopiowana), Klasa1(kopiowana) {}

Klasa3::Klasa3(enum1 pan, KlasaA nag, Klasa1 p, enum2 Enum2) :
Klasa2(pan, nag, p), m_enum2(Enum2) {} //8
Klasa3::Klasa3(ZbiorczaLad& kopiowana) : Klasa2(kopiowana),
m_enum2(kopiowana.m_enum2) {}
eTypLad ZbiorczaLad::Enum2() {return m_enum2;}


g++ -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2 -c
KlasaNr.cc -MT KlasaNr.lo -MD -MP -MF .deps/KlasaNr.TPlo -fPIC -DPIC -o
.../../include/Klasa.h: In constructor `
Klasa3::Klasa3(enum1, KlasaA, Klasa1, enum2)':
.../../include/Klasa.h: error: `Klasa1' is inaccessible
KlasaNr.cc:8: error: within this context

what's wrong?
Jul 22 '05 #1
0 1049

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Fir5tSight | last post: by
1 post views Thread by jheled | last post: by
reply views Thread by Shane | last post: by
3 posts views Thread by =?ISO-8859-1?Q?Marcel_M=FCller?= | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.