@@ -4,6 +4,8 @@ $(SPEC_S Classes,
4
4
5
5
$(HEADERNAV_TOC)
6
6
7
+ $(H2 $(LNAME2 overview, Overview))
8
+
7
9
$(P The object-oriented features of D all come from classes. The class
8
10
hierarchy
9
11
has as its root the class Object. Object defines a minimum level of functionality
@@ -22,6 +24,8 @@ $(HEADERNAV_TOC)
22
24
members are exposed externally to the DLL or EXE.
23
25
)
24
26
27
+ $(H2 $(LNAME2 declaration, Class Declarations))
28
+
25
29
$(P A class declaration is defined:
26
30
)
27
31
@@ -94,15 +98,16 @@ Foo var;
94
98
------
95
99
)
96
100
97
- $(H2 $(LNAME2 access_control, Access Control))
101
+ $(H3 $(LNAME2 access_control, Access Control))
98
102
99
103
$(P Access to class members is controlled using
100
104
$(DDSUBLINK spec/attribute, visibility_attributes,
101
105
visibility attributes).
102
106
The default visibility attribute is $(D public).
103
107
)
104
108
105
- $(H2 $(LNAME2 super_class, Super Class))
109
+
110
+ $(H3 $(LNAME2 super_class, Super Class))
106
111
107
112
$(P
108
113
All classes inherit from a super class. If one is not specified,
@@ -121,7 +126,7 @@ class B : A { } // B inherits from A
121
126
Commas are used to separate inherited types.)
122
127
123
128
124
- $(H2 $(LNAME2 fields, Fields))
129
+ $(H3 $(LNAME2 fields, Fields))
125
130
126
131
$(P Class members are always accessed with the `.` operator.
127
132
)
@@ -824,7 +829,9 @@ $(GNAME Destructor):
824
829
by the GC.
825
830
)
826
831
827
- $(H2 $(LNAME2 static-constructor, Static Constructors))
832
+ $(H2 $(LNAME2 static-ctor-dtor, Static Constructors and Destructors))
833
+
834
+ $(H3 $(LNAME2 static-constructor, Static Constructors))
828
835
829
836
$(GRAMMAR
830
837
$(GNAME StaticConstructor):
@@ -920,7 +927,7 @@ class Foo
920
927
}
921
928
------
922
929
923
- $(H2 $(LNAME2 static-destructor, Static Destructors))
930
+ $(H3 $(LNAME2 static-destructor, Static Destructors))
924
931
925
932
$(GRAMMAR
926
933
$(GNAME StaticDestructor):
@@ -967,7 +974,7 @@ class Foo
967
974
}
968
975
------
969
976
970
- $(H2 $(LNAME2 shared_static_constructors, Shared Static Constructors))
977
+ $(H3 $(LNAME2 shared_static_constructors, Shared Static Constructors))
971
978
972
979
$(GRAMMAR
973
980
$(GNAME SharedStaticConstructor):
@@ -979,7 +986,7 @@ $(GNAME SharedStaticConstructor):
979
986
and are intended for initializing any shared global data.
980
987
)
981
988
982
- $(H2 $(LNAME2 shared_static_destructors, Shared Static Destructors))
989
+ $(H3 $(LNAME2 shared_static_destructors, Shared Static Destructors))
983
990
984
991
$(GRAMMAR
985
992
$(GNAME SharedStaticDestructor):
0 commit comments