- Overview
- Transcript
5.3 Creating Subclasses
In this lesson we’ll create a couple of subclasses and have them extend our superclass allowing them to gain all of its functionality. This lets us reuse the code from our superclass and we could then add more features that are specific to the subclass if needed.
1.Introduction1 lesson, 01:00
1 lesson, 01:00
1.1Introduction01:00
1.1
Introduction
01:00
2.Intermediate Topics6 lessons, 45:23
6 lessons, 45:23
2.1Manipulating Strings15:01
2.1
Manipulating Strings
15:01
2.2Static Variables & Methods11:01
2.2
Static Variables & Methods
11:01
2.3Type Casting04:29
2.3
Type Casting
04:29
2.4Nested If Statements04:10
2.4
Nested If Statements
04:10
2.5Nested Loops07:30
2.5
Nested Loops
07:30
2.6Constants03:12
2.6
Constants
03:12
3.Input & Output3 lessons, 25:47
3 lessons, 25:47
3.1The Scanner Class05:20
3.1
The Scanner Class
05:20
3.2Reading Text Files & Exceptions15:55
3.2
Reading Text Files & Exceptions
15:55
3.3Writing to Text Files04:32
3.3
Writing to Text Files
04:32
4.Intermediate Class Design3 lessons, 13:32
3 lessons, 13:32
4.1Cohesion and Coupling06:28
4.1
Cohesion and Coupling
06:28
4.2Variable Scope03:47
4.2
Variable Scope
03:47
4.3Immutable Objects03:17
4.3
Immutable Objects
03:17
5.Inheritance & Polymorphism4 lessons, 31:09
4 lessons, 31:09
5.1Inheritance03:14
5.1
Inheritance
03:14
5.2Creating a Superclass05:23
5.2
Creating a Superclass
05:23
5.3Creating Subclasses10:38
5.3
Creating Subclasses
10:38
5.4Overriding Methods & Polymorphism11:54
5.4
Overriding Methods & Polymorphism
11:54
6.Conclusion1 lesson, 00:31
1 lesson, 00:31
6.1Conclusion00:31
6.1
Conclusion
00:31