Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*-
- * Copyright (c) 2012 valsorym <[email protected]>.
- * All rights reserved.
- *
- * Discussion on the forums.freebsd.org.
- * url: http://forums.freebsd.org/showthread.php?p=177208
- */
- /*
- * Very simple class, for example OOD in ANSI C.
- */
- /* NEW TYPES */
- /* ************************************************************************* */
- #ifndef EMPLOYEE_H
- #define EMPLOYEE_H
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include "human.h"
- /* Сlass of persons. */
- struct w_employee {
- /* Private: */
- struct w_human *human;
- char *post;
- /* Public: */
- char *(*setpost)(struct w_employee *, char *);
- char *(*getpost)(struct w_employee *);
- };
- /* Class initializer. */
- extern const struct w_employee_initializer {
- struct w_employee *(*create)(int , char *, char *);
- void (*destroy)(struct w_employee *);
- } w_employee;
- #endif
- /* The End. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement