Classes | Typedefs | Functions
027_extends.c File Reference

Go to the source code of this file.

Classes

struct  Object
 
struct  Vehicle
 
struct  Car
 
struct  Truck
 

Typedefs

typedef struct Object Object
 Object type. More...
 
typedef struct Vehicle Vehicle
 Vehicle type. More...
 
typedef struct Car Car
 Car type. More...
 
typedef struct Truck Truck
 Truck type. More...
 

Functions

int main (void)
 

Typedef Documentation

typedef struct Car Car

Car type.

Definition at line 13 of file 027_extends.c.

typedef struct Object Object

Object type.

Definition at line 11 of file 027_extends.c.

typedef struct Truck Truck

Truck type.

Definition at line 14 of file 027_extends.c.

typedef struct Vehicle Vehicle

Vehicle type.

Definition at line 12 of file 027_extends.c.

Function Documentation

int main ( void  )

Main function.

Ref vehicleStart(), objRef(), objUnref().

Definition at line 88 of file 027_extends.c.

89 {
90  Car c;
91  vehicleStart((Vehicle*) &c);
92 }
void vehicleStart(Vehicle *obj)
Definition: manual.c:37
Definition: manual.c:61