Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Abstract classes

279 views

Published on

explanation to abstract classes in java

Published in: Education
  • Be the first to comment

  • Be the first to like this

Abstract classes

  1. 1. Abstract Classes ● An abstract class is a class that is declared abstract. ● It may or may not include abstract methods. ● Abstract classes cannot be instantiated, but they can be subclassed. Syntax: abstract class <class-name>{}
  2. 2. Types of abstraction ● Data abstraction Abstracting the data members in the abstract class ● Control abstraction Abstracting the functions that performs the operation.
  3. 3. Sample code for abstract classes
  4. 4. Sample output

×