9,827
  • Java Programming: 17 - Abstract classes and methods

    107,643 views 5 years ago
    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. Show less
    Read more
  • Popular uploads Play all

    • Java Programming: 4 - Methods - Duration: 13 minutes.

      • 6 years ago
      • 174,040 views
      I use the word function interchangeably with method in this video (out of habit--methods in Java are called functions in other languages).

      This tutorial covers the basics of writing and calling ...
    • Java Programming: 9 - Classes and Objects - Duration: 14 minutes.

      • 5 years ago
      • 120,296 views
      In this tutorial we learn how to instantiate objects from classes that we create. We learn about instance variables, instance methods, and constructors. Getters and setters are introduced and encou...
    • Java Programming: 17 - Abstract classes and methods - Duration: 14 minutes.

      • 5 years ago
      • 107,643 views
      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 cre...
    • Java Programming: 12 - Packages - Duration: 6 minutes, 31 seconds.

      • 5 years ago
      • 59,469 views
      In this tutorial, we learn how to create and nest packages. We'll move all of our existing classes into a new package, and use this and other packages in the future to keep our classes organized.

      ...
    • Java Programming: 15 - Intro to Inheritance - Duration: 9 minutes, 55 seconds.

      • 5 years ago
      • 48,760 views
      In this tutorial, I introduce a powerful feature of object-oriented programming: inheritance.

      Inheritance allows you to have one class "inherit" the variables and methods of another. This help p...
    • Java Programming: 10 - Reference and Value types - Duration: 7 minutes, 47 seconds.

      • 5 years ago
      • 47,714 views
      In this tutorial we look at the difference between value types (primitives) and reference types (objects).

      Primitives are passed by value, so when passed to a method, you aren't manipulating the...
    • Java Programming: 13 - Data Structures intro, Arrays - Duration: 12 minutes.

      • 5 years ago
      • 41,975 views
      In this tutorial I introduce data structures and we learn how to use one of the most basic structures, the array.

      We look at different ways we can initialize an array, how to set values to array...
    • Java Programming: 1 - Installing the JDK and Eclipse - Duration: 3 minutes, 24 seconds.

      • 6 years ago
      • 41,084 views
      This tutorial guides you through everything you need to begin developing Java programs.

      It is assumed that you can follow the JDK install wizard.

      You can download the JDK here: http://www.ora...
    • Java Programming: 8 - Using Objects, creating a window - Duration: 10 minutes.

      • 5 years ago
      • 40,178 views
      In this tutorial, I demonstrate how to instantiate and use objects by example. We use a JFrame object to create a window, and add a JLabel object to it.

      You should probably add: window.setDefaul...
    • Java Programming: 3 - Types and Variables - Duration: 13 minutes.

      • 6 years ago
      • 37,860 views
      In this tutorial, we cover the basics of using variables in Java.

      Two of Java's primitive types are introduced: int and double

      We also introduce the String type.

      We go through various exam...
    • Java Programming: 2 - Hello World, Eclipse shortcuts, comments - Duration: 5 minutes, 32 seconds.

      • 6 years ago
      • 35,072 views
      In this tutorial we create the standard "Hello, world!" application using Java.

      I introduce two very helpful shortcuts that the Eclipse IDE provides:

      Automatically generate a main method: typ...
    • Java Programming: 5 - Variable Scope - Duration: 6 minutes, 32 seconds.

      • 6 years ago
      • 33,238 views
      In this tutorial, I explain the basics of scope.

      A variable declared outside of any method with the static keyword is called a class variable, and is available to all methods in the class (varia...
    This item has been hidden
  • Java Programming Play all

    Java programming starting with the basics. I'll keep adding additional videos over time, so if you have any requests be sure to let me know.
    This item has been hidden
  • Uploads Play all

    This item has been hidden
to add this to Watch Later

Add to

Loading playlists...