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

前端 未结 29 867
情话喂你
情话喂你 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:57

    A java class is the structure or blueprint of an object and object is the instance(memory creation) of a class.

    Example: Car is an object(real world entity). firstly, make the structure or design of a Car it's class and when the design of car, to convert real world Car it's an Object. the Car(object) is working now base behalf of design of a car(class).

提交回复
热议问题