Professional Documents
Culture Documents
• #ifndef shape_H
• #define shape_H
• Class shape
• {
• Private:
• Public:
• };
• #endif
• #include "shape.h"
• #include <iostream.h>
• Void shape::اسم الوظيفة
• {
• Code;
• }
• #include "shape.h"
• #include <iostream.h>
• Void main()
• {
• Object declaration;
• Access by object;
• }
• #include "shape.h" ←
• Class rect:public shape
• {
• Private:
• Declaration variable;
• Public:
• Function prototypy;
• };
• #endif
• #include "rect.h"
• #include <iostream.h>
• Void rect::اسم الوظيفة
• {
• Code;
• }
• #include "rect.h"
• #include <iostream.h>
• Void main()
• {
• Object declaration;
• Access by object;
• Access by object to ovirrid;
• }