1. 1 basic object-oriented conceptsThe basic idea of object-orientedObject-oriented is an emerging program design method, or a new program design specification (paradigm), its basic idea is to use object, class, inheritance, encapsulation, message
"Thinking before Class"1. What is an object? What is a class? What is a package? What is an interface? What is an internal class?2. What are the three properties of object-oriented programming? What are the characteristics of each of them?3. Do you
The structure of a class: there can be three of things inside a class, that is, constants (constant), attributes, and methods, which can be understood as constants, variables, and functions outside the class.Copy CodeThe code is as follows:Class
Abstract: This article is a reflection on the previous post of bbs c/C ++. When I saw the post, I suddenly felt that I had timed out. It seems that I am getting unfamiliar here. This article attempts to discuss how the access control operator works,
Http://blog.chinaunix.net/u1/41167/showart_1084013.html
The original post is as follows:1 # include
2 using namespace STD;
3
4 Class {
5 public:
6 A (int I _, Int J _)
7 {
8 I = I _;
9 J = J _;
10}
11 void disp (A &)
12 {
13 cout 14}
15
16
2018-08-15 20:17:141, three major featuresThe so-called encapsulation, that is, to encapsulate objective things into abstract classes, and classes can be their own data and methods only let the trusted class or object operation, to the untrusted
Linux Command Basics. Experimental objectivesSkilled basic commands. Experimental steps
Linux Command line Basics
[[email protected] ~]# ls//View list target content[[email protected] ~]# ls-l//display in long format[[email protected] ~
Three kinds of access rights
We know that classes in C + + have three kinds of access rights (also known as access Control), which are public, protected, private, respectively. To understand them is also easy, look at an example below.
Parent
Key points of Xi
Process oriented
Object oriented
Abstract
Class
How to construct a class
Common keywords in a class
Member methods of the class
member variables of the class
Process-oriented
TypeYes/no
Classes
Regular Inner Classes
Method-local Classes
Fields
Methods
Constructors
Yes
public final Abstract
public protected Private final static
Use of @public, @protected, @private
When declaring a class in OC, you can use the above @public, @protected, @private Three keywords to declare the permissions of the instance, such as the following
Decorator mode:
In the process of object-oriented design and development, you may often encounter the following situations. We need to add new responsibilities for a defined class, in this case, we will define a new class to inherit the custom
This section describes the JS documentation and demo design tools. Smartdoc uses the yuidoc engine, so the annotation rules are the same. First, let's briefly introduce the compilation of yuidoc annotations.
Writing comments is a very heavy
Java object-oriented four features1. Abstraction:Abstraction--is to ignore aspects of a topic that are not relevant to the current goal in order to pay more attention to the aspects related to the current goal. (That is, the real world of a certain
Java object-oriented Features Summary, java object-oriented
Object-oriented features in Java
(Good summary)
[Thinking Before class]1. What is an object? What is a class? What is a
Object-oriented features in the Java language
(Good summary)
"Thinking before Class"1. What is an object? What is a class? What is a package? What is an interface? What is an
Beginners C + + friends often see in the class Public,protected,private and their inheritance in the expression of some of the scope of access, it is easy to confuse. Today this article will be very analysis of C + + public, protected and private
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.