What's the best way to define the words “class” and “object” to someone who hasn't used them?

前端 未结 29 895
情话喂你
情话喂你 2020-12-13 05:11

My neighbor is taking \"Intro to Java\", and asked me to help explain a few of the first-day concepts. I realized that since I do this everyday, I don\'t have the beginner\

29条回答
  •  渐次进展
    2020-12-13 05:48

    OOP is just one more way of representing Abstract Data Structures in programs. In object-oriented terminology, the type is called a class, and the variable with that type is called an object. More on type <-> class, variable <-> object correspondence.

提交回复
热议问题