# Class definition

**URL:** <https://forum.kirupa.com/t/class-definition/243720>\
**Category:** Uncategorized\
**Created:** [November 9, 2007, 9:42pm UTC](https://forum.kirupa.com/t/class-definition/243720 "2007-11-09T21:42:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xyoavx](https://avatars.discourse-cdn.com/v4/letter/x/a587f6/32.png) [@xyoavx](https://forum.kirupa.com/u/xyoavx)\
**Post date:** [November 9, 2007, 9:42pm UTC](https://forum.kirupa.com/t/class-definition/243720/1 "2007-11-09T21:42:13Z")

</div>

Hello  
In c# an object can be created before its class definition.for example:  
abc z = new abc();  
class abc{}  
It is a kind of forward reference.I don’t understand how an object can be created before its class’ definition (c# compiler is a one pass compiler).  
Thanks in advance  
xyoavx
