Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 4. Object Oriented Programming > Creating Dynamic Classes

4.13. Creating Dynamic Classes

The last kind of class is saved for the end because it should be used rarely and with care. Dynamic classes are classes whose properties and methods can be changed, added, and removed at runtime. This works against the type system and many object oriented principles, but it can be convenient for some needs.

You can create a dynamic class by adding the keyword dynamic to the class definition.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint