java-Object-oriented concepts

Source: Internet
Author: User

java-Object-oriented
a basic feature
1, object-oriented is relative to process-oriented
2, both are a kind of thought
3, process-oriented emphasis is on functional behavior
4, object-oriented is to encapsulate functionality together
5, object-oriented is based on process-oriented
two methods for defining objects:
The method of noun refinement
1, object-oriented three features: encapsulation inheritance polymorphism

2, development is looking for objects to create objects with no objects

3, find objects to build objects using objects to maintain relationships with objects

Relationship of three classes and objects

Class: A description of real-life transactions

Object: This is the kind of thing, the real existence of the individual

Four Memory
The defined object is in the stack, and the new operator opens up memory in the heap memory

* Five-face question what is object-oriented: *
object-oriented features in addition to examples
For example, a car is an object, it is necessary to find a variety of parts, it is a process-oriented way of thinking
Object-oriented is to let oneself to command a car object, do not have to find the parts themselves, from the executor to the conductor's transformation
Don't answer: Everything in Java is an object
Consider the object first when developing

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

java-Object-oriented concepts

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.