Join Peggy Fisher for an in-depth discussion in this video Establishing abstract classes, part of Java Essential Training for Students.
- Moving on to Abstract Classes.…When defining an abstract class…you must include the keyword Abstract…in the class header.…Such as, Public, Abstract, Class, Shape.…The class may or may not include abstract methods.…It's important to understand you cannot instantiate…an object that is of the type of the abstract class.…Although abstract classes cannot be instantiated,…they can have subclasses.…And any abstract methods inside the abstract class…are declared without an implementation…and only the method header.…
So what happens when a class…inherits from an abstract class?…The subclass must provide the implementation…for all the abstract methods that are in the parent class.…If it does not, it must be declared as abstract also.…Abstract classes are similar to interfaces.…Once again, you cannot instantiate an interface,…and an interface may contain a mix of methods…that are with or without code.…When we worked with the geometry class earlier…and we had a shape class, it was an abstract class.…
Lets go back to that.…
- Getting started with parsing
- Reviewing data types
- Using decisions
- Creating user-defined methods
- Command-line debugging
- Exploring the Java API
- Creating and instantiating classes
- Working with interfaces
- Storing items with arrays
Skill Level Intermediate
Q: How can I make my debugger function like the author’s?
Learning Java Applications (2012)with Todd Perkins1h 42m Beginner
1. Command Level Programming
2. Basics Review
4. Java API
5. Simulations and Algorithm Analysis
6. Classes and Objects
7. More on Classes
8. Data Structures
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.