current position:Home>Object oriented basics ----------- understanding classes and objects 02

Object oriented basics ----------- understanding classes and objects 02

2022-01-26 22:21:29 S_ two thousand three hundred and thirty

Understand classes and objects

class

Class is a class that has the same features and Behavior A general term for things , It's a Abstract concept , Something that is not real

  • Characteristics are attributes
  • Behavior is method

class For example, the drawings used in the manufacture of washing machines , It can also be said that Class is used to create objects .

object

Objects are real things created by classes , such as : Washing machine

Be careful : In development , Prior class , Then there's the object

 

copyright notice
author[S_ two thousand three hundred and thirty],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/01/202201262221272812.html

Random recommended