Sitemap
SIDDHARTH SHARMA

SIDDHARTH SHARMA

Java Class Part 1

Feb 6, 2025

Concrete class:-

  1. Concrete Class is a simple Java Class in which an object can be created Using New Keyword.
  2. Concrete class must implement all methods.
  3. Access Modifier of Concrete Class can be default or Public.private and protracted is Not Allowed.
Press enter or click to view image in full size

In above image abstract method is not allowed in Concrete Class.

Get SIDDHARTH SHARMA’s stories in your inbox

Join Medium for free to get updates from this writer.

Abstract Class:

  1. Abstract class is used to achieve 0% to 100% Abstraction.
  2. we cannot initiate Object of Abstract Class.
  3. constructor can be created Inside Abstract Class and can be private, protected,public,default.
  4. Abstract method cannot be private can be public, protected, or Default.
Press enter or click to view image in full size

Super Class And SubClass:-

  1. when A class Extends another Class then Parent class is Super class of child class and child class is subclass of Parent Class.
  2. when a class not inherit Another class then it is subclass of Object.
Press enter or click to view image in full size

--

--