སྟོན་རྐྱངམ་ཅིག་
0:03
S… Speaker 1 (13- Summary)
Let's quickly recap what you learned in this section.
0:05
S… Speaker 1 (13- Summary)
With generics,
0:06
S… Speaker 1 (13- Summary)
we can create general purpose classes and methods that can work with different
0:11
S… Speaker 1 (13- Summary)
types of objects.
0:12
S… Speaker 1 (13- Summary)
Generics are very common in Java.
0:14
S… Speaker 1 (13- Summary)
As you will see throughout this course,
0:15
S… Speaker 1 (13- Summary)
a lot of built -in classes and interfaces in Java are generic.
0:19
S… Speaker 2 (13- Summary)
Now,
0:19
S… Speaker 1 (13- Summary)
when we compile a generic class,
0:21
S… Speaker 1 (13- Summary)
the Java compiler will erase the generic type parameter and replace
0:25
S… Speaker 1 (13- Summary)
it with an actual class.
0:26
S… Speaker 2 (13- Summary)
By default,
0:27
S… Speaker 1 (13- Summary)
it will use the object class unless we apply a constraint to a parameter.
0:31
S… Speaker 1 (13- Summary)
We can apply a constraint using the extents keyword and this will ensure that we can
0:36
S… Speaker 1 (13- Summary)
only use the given type or its subtypes as a generic type argument.
0:40
S… Speaker 1 (13- Summary)
We also talked about wildcards.
0:42
S… Speaker 1 (13- Summary)
With wildcards we can cast generic types.
0:44
S… Speaker 1 (13- Summary)
So that's it.
0:46
S… Speaker 1 (13- Summary)
In the next section I'm going to talk about collections and as you will see these collection
0:50
S… Speaker 1 (13- Summary)
types are all generic.
0:51
S… Speaker 1 (13- Summary)
So I'll see you in the next section.

ཡིག་སྒྱུར་འདི་ བཅོས་མའི་བློ་རིག་ (སྒྲ་ངོས་འཛིན་བྱེད་པའི་འཕྲུལ་རིག་) གིས་བཟོ་སྟེ་ཡོདཔ་ཨིན། ནང་ལུ་འཛོལ་བ་ཡོད་སྲིད་པ་ལ་ གལ་སྲིད་ཁག་ཆེ་བའི་དོན་ལས་ ངོ་མཚར་སྒྲ་སྐད་དང་བསྡུར་ཞིབ་དཔྱད་འབད་དགོཔ་ཨིན། བཅོས་མའི་བློ་རིག་གི་སྲིད་བྱུས་

❤️ STT.ai ལ་དགའ་བ་ཡིན་ནོ? སླབ་པར་བགྱི!
བཅུད་དོན་
Click Summarize to generate an AI summary of this transcript.
དྲན་ཐོ་བསྡུ་གསོག...
དྲན་ཤེས་ལ་དྲི་བ་དྲིས་ལན་ཞུ།
ཡིག་ཆ་འདི་གི་སྐོར་ལ་དྲི་བ་ཅི་རིགས་ཞུས་ནའང་ བཅོས་མའི་བློ་རིག་གིས་ འབྲེལ་བ་ཡོད་པའི་དོན་ཚན་ཚུ་ འཚོལ་ཞིབ་ དང་ལན་འདེབས་ འབད་འོང་།