mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 10:01:38 +00:00
Merge branch 'master' of https://github.com/NickPapanastasiou/learnxinyminutes-docs
This commit is contained in:
commit
b0859afe7f
@ -133,13 +133,6 @@ getter and setter methods (`object.setX(7)`)!
|
|||||||
|
|
||||||
```d
|
```d
|
||||||
// Consider a class parameterized on a types T, U
|
// Consider a class parameterized on a types T, U
|
||||||
|
|
||||||
class MyClass(T, U) {
|
|
||||||
T _data;
|
|
||||||
U _other;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// And "getter" and "setter" methods like so
|
// And "getter" and "setter" methods like so
|
||||||
class MyClass(T, U) {
|
class MyClass(T, U) {
|
||||||
T _data;
|
T _data;
|
||||||
|
Loading…
Reference in New Issue
Block a user