Java Programming: 17 - Abstract classes and methods

preview_player
Показать описание
In this tutorial, we build on our understanding of inheritance by introducing abstract classes and abstract methods.

An abstract class is a class that exists purely to be extended. You can not create an instance of an abstract class.

An abstract class may have abstract methods. Abstract methods provide no implementation. They only provide the method signature (return type, name, and parameters). Any class that then extends the abstract class must provide an implementation for any abtract methods it inherits (unless that class is also abstract).

Another important note from this video is that the type of a variable determines the interface for the object it refers to (what you can do with it). For example, if we refer to Player by type GameObject, we are not able to call any methods specific to Player on that instance (unless we cast it to Player). This is something that we're likely to see more of in future tutorials.
Рекомендации по теме
Комментарии
Автор

I have been wrapping my brain around Java for the last month and a half and quite frankly was struggling a bit....till I watched this video!! Kudos to you. You have very succinctly said and captured in one video what mostly all of the free and paid courses missed to delineate clearly! THANK YOU!

paulvanjaarsveld
Автор

I just spent an hour and a half reading lecture notes about this trying to understand what you helped me get a grasp of in literally 5 minutes. Thank you!

PetrifiedPenguin
Автор

Thank you. I'm glad that you find it helpful.

I'd love to do this sort of thing full time. I have actually considered starting a Kickstarter to fund a video game development project where you'd be buying the game, but I'd be creating video tutorials of the entire process. I don't know if there's enough support out there for it though.

CodeMonkeyCharlie
Автор

You are one of the best teachers I've run across on programming. I've been following several of your tutorials. You're an amazing teacher. Hope whatever you've decided is next includes providing such excellent guidance. The time you invested in these tutorials is greatly appreciated.

MrBillyspilly
Автор

Excellent tone of voice, pace and well explained tutorials. Definitely the best tutoral series I have come across

LilSassy
Автор

As a beginner in Java programming this is excellent information whenever you watch it 5 or more times to understand it.

jacksonmaia
Автор

Love your tutorials - better than most - more like an actual class since you teach rather than just show. Hoping to see more videos soon!

hollywoodfrodo
Автор

Truly understanding not enough time in a day, I myself am renovating my home. But, I have decided to make my hobby of computer programming my new career. I've done a load of tutorials as I learn better at my own speed. What I like about you is that yout not only teach the coding but how you can cut down on the redundant coding by using eclipese as a tool to work for you and not just a text editor. Good Job.

Ebonygeek
Автор

WOW - genius explanation. Nice when an up-loader knows his subject mater, rehearses his script and has a concise worked example. I take my hat off to you sir. Thanks

sdevane
Автор

Please continue your tutorial series. Yours has been the best structured out of all the youtube tutorials available. Very thorough and really nice attention to detail that goes beyond just the code... like naming conventions, best practices, etc. I can't wait for the more advanced tutorials!

DeanGl
Автор

Man, I just finished all 17 videos, the best java tutorials I have came across on youtube, please come back man ! I wish you were still doing videos, I was excited for interfaces.

_Ronin
Автор

The most intuitively explained Java tutorial out there. Bravo CMCharlie!

mr.ontological
Автор

Your tutorial explains abstraction and polymorphism very nicely. Your wording was carefully thought out, I think. Thank you so much for this. Much better than any other tutorials.

accountisdisabled
Автор

Perfect tutorial for non-programming learners, highly recommended, I went through all the other videos after watching this one.

conniechen
Автор

Thanks for posting this. You've explaine this with a lot more clarity than the text book I'm currently working from.

glennkelly
Автор

I learned more from watching your tutorials than from attending my Java class at school. Thank you for these awesome and well explained videos! I hope to see more videos up soon.

ericlopez
Автор

I'm sad the tutorials are over. I hope you decide to make more because they are greatly appreciated.

I've tried dozens of different tutorials. Some were OK at best, but always skipped over a lot of important concepts. Many of them are by teenagers that don't use the correct nomenclature and are also beginners with a rudimentary knowledge of Java, jump all over the place, immature or annoying to listen to, etc.

Your tutorials are high quality and very easy to follow and understand.

THANKS!

psyclonesmith
Автор

I've watched all your tutorials now and I can't thank you enough! I bought a book on Java programming and I learned more by watching one video of yours than reading for xx hours. Your videos are so well organized, you give good examples, your voice is relaxed and clear; all good pedagogical qualities. And there's and HD option :D

SNNee
Автор

I will have to go over a few tutorials a couple more times to let everything sink in. But definitely make more, they are the best I've seen so far.

jerstah
Автор

I really have a better understanding for Java..I learned more than coding I learn the process of what a programmer goes through. I feel alot smarter too..Great Job on the tuts. One thing I really overlooked is I need to get my typing speed back up. Subscribing

Dredknotvibez