正在加载图片...
OoP/ Slide 12 Put the variables and functions together Actual problem 1. Member 'variablesare still separated from functions'manipulating these variables. 2. However, functions are intrinsically related to the type The sim plest class or a C-structure) defined this way is a collection of (member) variables( similarto RECORD in Pascal) A more advanced class is a collection of (member) variables and(member) functions The art of programming is the art of organising complexity.OOP / Slide 12 Put the variables and functions together … Actual problem: 1. Member ‘variables’ are still separated from ‘functions’ manipulating these variables. 2. However, ‘functions’ are intrinsically related to the ‘type’. A more advanced class is a collection of (member) variables and (member) functions The simplest class (or a C-structure) defined this way is a collection of (member) variables (similar to RECORD in Pascal) “The art of programming is the art of organising complextity
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有