Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What are the definitions of classes, objects and references in big data

Shulou Source: shulou.com Published: 2022-06-01 04:58:33 09月24日 Update

What this article shares with you is about the definition of classes and objects and citations in big data. The editor thinks it is very practical, so I share it with you to learn. I hope you can learn something after reading this article. Let's take a look at it with the editor.

Class definition: calss class name {class body;}

Class names require uppercase initials, and when composed of multiple words, each word requires uppercase capitalization.

Definition of member variables: calss class name {data type member variable name = initialization;}

The first letter of the member variable name is lowercase, and when multiple words are formed, the first letter of the word is capitalized from the second word.

Object creation; new class name ()

When a class is defined, the process of using the new keyword to create objects for that class is called class instantiation.

The essence of creating an object is to apply for a storage area in the heap area of the memory space to store the unique characteristic information of the object.

Definition of reference: class name refers to variable name; reference variable name. Member variable name

Variables defined using reference data types are called reference variables, or references for short.

The reference variable is mainly used to record the memory address information of the object in the heap area, which is easy to access next time.

The initial value of the member variable:

These are the definitions of classes and objects and references in big data. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Tags: Variables objects words members class names data letters capitals information memory multiple that is more knowledge articles types utility keywords keywords regions Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Tech Info Apple Xiaomi Shulou Information