Java Class Part 1
Feb 6, 2025
Concrete class:-
- Concrete Class is a simple Java Class in which an object can be created Using New Keyword.
- Concrete class must implement all methods.
- 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:
- Abstract class is used to achieve 0% to 100% Abstraction.
- we cannot initiate Object of Abstract Class.
- constructor can be created Inside Abstract Class and can be private, protected,public,default.
- 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:-
- when A class Extends another Class then Parent class is Super class of child class and child class is subclass of Parent Class.
- when a class not inherit Another class then it is subclass of Object.
Press enter or click to view image in full size![]()







