July 2015
Intermediate to advanced
1300 pages
87h 27m
English
Object-oriented programming is based on some unique principles. These principles are discussed in detail in Part II, but here we need to get a brief introduction to them.
An important principle of object-oriented programming is inheritance, which is covered in Chapter 12. Classes (that is, reference types) support inheritance, whereas structures (value types) do not. Consider the following code:
Class Person Property FirstName As String Property LastName As StringEnd ClassClass Developer Inherits Person Property UsedProgrammingLanguage As String Public Overrides Function ToString() As String Return Me.LastName End FunctionEnd Class
In this example, ...