Java OOPS II Abstraction II Abstract Class II Abstract Method II Core Java II Selenium with Java

Опубликовано: 28 Октябрь 2024
на канале: Knowledge Share
122
5

In this session you will learn What is Abstraction and how to create abstract class and abstract method

=============================
OOPS - Abstraction
=============================

Definition : Hiding the Implementation and providing actual functionality to the user.
============

What can you create ?
You can create Abstract Class
You can create Abstract Method


Abstract Class :
Abstract class contians atleast one Abstract Method
Implementation ( Definition )of Abstract Methods are in Derived Class
Note : You cannot create an object in Abstract class

Created using a Keyword : abstract

Abstract Method : You can only declare a method with out Implementation ( definition )

Created using a Keyword : abstract

What is the difference between Concrete Class and Abstract Class ?

Concrete class contains complete definition for all methods
Abstract class contains abstract methods i.e., only declaration and no Implementation