YouTube Link: https://youtu.be/5X0Y--92pMI
**Java, J2EE & SOA Certification Training - https://www.edureka.co/java-j2ee-training-course **
This Edureka PPT on Abstract Classes in Java will provide you with detailed knowledge about Abstract Classes in Java and along with it, This PPT will also cover some examples of Abstract Classes in Java, in order to provide you with a deep understanding about their functionality. This PPT will cover the following topics:
What are Abstract Classes in Java?
Why do we need an Abstract Classes in Java?
Rules for using Abstract Classes in Java
Ways to achieve Abstraction in Java
The Syntax for Abstract Classes
Practical Examples of Abstract Classes
Difference between Interface and Abstract Class
Complete Java Playlist: http://bit.ly/2XcYNH5
Complete Blog Series: http://bit.ly/2YoabkT
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
2. WHY WE NEED ABSTRACT CLASSES IN JAVA?
RULES FOR ABSTRACT CLASSES IN JAVA
www.edureka.co
WHAT ARE ABSTRACT CLASSES IN JAVA?
WAYS TO ACHIEVE ABSTRACTION IN JAVA
THE SYNTAX FOR ABSTRACTION IN JAVA
PRACTICAL EXAMPLES OF ABSTRACT CLASSES
ABSTRACT CLASS VERSUS INTERFACE
4. WHAT ARE ABSTRACT CLASSES IN JAVA?
www.edureka.co
Abstract Classes in Java act as a boundary between the
implementation method and its functionality. It is used to
exchange the functionality between the Concrete class
members and the Abstract Class method.
5. WHY WE NEED ABSTRACT CLASSES IN JAVA?
www.edureka.co
6. Dynamic Method Resolution
Loose Coupling
Separates Method Definition Code Reuseability
Template
Default Functionality
WHY WE NEED ABSTRACT CLASSES IN JAVA?
www.edureka.co
8. It can have Constructors and Static Methods also
It can have Abstract and Non-Abstract Methods
An Abstract Class must be declared using Abstract Keyword
It can have Final Methods
It cannot be Instantiated
RULES FOR ABSTRACT CLASSES IN JAVA
www.edureka.co
10. WAYS TO ACHIEVE ABSTRACTION IN JAVA
The process of Abstraction in Java can be achieved by the
following two methods as mentioned below:
1. Implementing an Abstract Class
2. Implementing an Interface
www.edureka.co
17. ABSTRACT CLASS VERSUS INTERFACE
Abstract Class can have Abstract and Non-Abstract methods
Interface can have only Abstract Methods
www.edureka.co
18. ABSTRACT CLASS VERSUS INTERFACE
Abstract Class includes Non-Final Variables
Interface has only Final Variables
www.edureka.co
19. ABSTRACT CLASS VERSUS INTERFACE
Abstract class has Static, Non-Static, final, Non-Final variables
Interface has Static and Final variables only
www.edureka.co
20. ABSTRACT CLASS VERSUS INTERFACE
Abstract class can implement an Interface
Interface will not implement the Abstract Class
www.edureka.co
21. ABSTRACT CLASS VERSUS INTERFACE
Abstract class is implemented using “extends” Keyword
Interface is implemented using “implements” Keyword
www.edureka.co
22. ABSTRACT CLASS VERSUS INTERFACE
Abstract classes can extend Java Classes and Interfaces
Interface can extend only an Interface
www.edureka.co
23. ABSTRACT CLASS VERSUS INTERFACE
Members can be Private and Protected in an Abstract Class
Members are Public by default in an Interface
www.edureka.co