Skip to header Skip to main navigation Skip to main content Skip to footer

User account menu

  • Log in
Home
COPA
Computer Operator and Programming Assistant

Main navigation

  • Home
    • COPA Assessment Criteria
    • COPA Job Role
    • Course Information
  • Books
  • Question Paper
  • Syllabus

Concept of Abstract classes and methods

Breadcrumb

  • Home
  • Introduction to Programming in Java
  • Concept of Abstract classes and methods

Network

ITI Trade Subject

  • ITI Electrician
  • ITI Fitter
  • ITI COPA
  • ITI Welder
  • ITI Mechanic
  • ITI Electronics
  • ITI Wireman
  • ITI Draughtsman Civil & Mech
  • ITI Refrigeration & Air Conditioning
  • ITI Turner
  • ITI Plumber
  • ITI Machinist
  • ITI Cosmetology
  • ITI Sewing
  • ITI Surveyor
By Anand | 12:46 PM IST, Fri March 13, 2026

Concept of Abstract Classes and Methods in Java

Java is a powerful object-oriented programming language that provides various features such as inheritance, polymorphism, encapsulation, and abstraction. One of the key features that helps achieve abstraction in Java is the use of abstract classes and abstract methods.

Abstract classes and methods allow programmers to define a general structure for a class while leaving the implementation of some methods to its subclasses. This approach helps create flexible and reusable code.

For students studying the ITI COPA (Computer Operator and Programming Assistant) trade, understanding abstract classes and methods is essential because they are widely used in modern Java applications and software frameworks.

What is Abstraction in Java?

Abstraction is the process of hiding implementation details and showing only the necessary features of an object.

In simple terms, abstraction focuses on what an object does rather than how it does it.

For example, when driving a car, the driver uses the steering wheel, brake, and accelerator without knowing the internal working of the engine. This concept is similar to abstraction in programming.

Java achieves abstraction using:

  • Abstract classes
  • Interfaces

In this chapter, we focus on abstract classes and methods.

What is an Abstract Class?

An abstract class is a class that cannot be instantiated directly. It is used as a base class from which other classes can inherit.

An abstract class may contain:

  • Abstract methods (methods without implementation)
  • Concrete methods (methods with implementation)
  • Variables and constructors

To declare a class as abstract, the abstract keyword is used.

Syntax of an Abstract Class

abstract class ClassName {

    // abstract methods
    // concrete methods

}

Example of an Abstract Class

abstract class Animal {

    abstract void sound();

}

In this example, the Animal class is abstract and contains an abstract method called sound().

What is an Abstract Method?

An abstract method is a method that is declared without an implementation. It only contains the method declaration, and its implementation must be provided by the subclass.

Syntax of an Abstract Method

abstract void methodName();

Abstract methods must be declared inside abstract classes.

Example Program Using Abstract Class

abstract class Animal {

    abstract void sound();

}

class Dog extends Animal {

    void sound() {
        System.out.println("Dog barks");
    }

}

public class TestAbstract {

    public static void main(String[] args) {

        Dog d = new Dog();
        d.sound();

    }

}

Output:

Dog barks

The Dog class provides the implementation of the abstract method defined in the Animal class.

Abstract Class with Both Abstract and Concrete Methods

An abstract class can contain both abstract and non-abstract methods.

abstract class Shape {

    abstract void draw();

    void display() {
        System.out.println("Displaying shape");
    }

}

class Circle extends Shape {

    void draw() {
        System.out.println("Drawing circle");
    }

}

The display() method already has an implementation, while the draw() method must be implemented by subclasses.

Rules for Abstract Classes

  • An abstract class cannot be instantiated.
  • It may contain abstract and concrete methods.
  • If a class contains an abstract method, the class must be declared abstract.
  • A subclass must implement all abstract methods of its parent class.

These rules ensure proper implementation of abstraction in Java.

Example of Multiple Subclasses

abstract class Animal {

    abstract void sound();

}

class Dog extends Animal {

    void sound() {
        System.out.println("Dog barks");
    }

}

class Cat extends Animal {

    void sound() {
        System.out.println("Cat meows");
    }

}

Here, both Dog and Cat classes provide their own implementation of the sound() method.

Advantages of Abstract Classes

  • Provides abstraction in programming.
  • Allows partial implementation of methods.
  • Promotes code reusability.
  • Improves program structure.

These advantages make abstract classes useful in large software systems.

Difference Between Abstract Class and Interface

FeatureAbstract ClassInterface
MethodsCan contain abstract and concrete methodsMostly abstract methods
VariablesCan contain instance variablesOnly constants
InheritanceSingle inheritanceMultiple inheritance supported

Applications of Abstract Classes

Abstract classes are widely used in software development.

  • Framework development
  • Application programming interfaces (APIs)
  • Game development
  • Enterprise software systems

Many large Java frameworks rely on abstract classes to define common structures for subclasses.

Importance for ITI COPA Students

For students studying the ITI COPA trade, learning abstract classes and methods helps in understanding abstraction and code reusability.

This concept helps students design structured programs where common behavior is defined in a base class and specific behavior is implemented in derived classes.

Understanding abstraction also prepares students for advanced Java topics such as interfaces, design patterns, and framework development.

Conclusion

Abstract classes and abstract methods are important features of Java that help achieve abstraction in object-oriented programming. They allow programmers to define a general structure while leaving specific implementation details to subclasses.

Abstract classes improve code organization, promote reusability, and help build flexible software systems.

For ITI COPA students, mastering the concept of abstract classes and methods is essential for learning advanced Java programming and developing professional applications.

Book traversal links for Concept of Abstract classes and methods

  • ‹ Compilation and Execution of JAVA programs
  • Up
  • Concept of Virtual methods ›
  • Printer-friendly version

Article

Types of Files in Computer System
Safety Signs and Symbols Used in Workplace
Safety Rules While Using Computer
Can I start my own business after doing ITI in COPA trade?
Scope in Government Jobs after Doing ITI in COPA

Books

Introduction to Programming in Java
Programming language (Python)
Cloud Computing
Cyber Security
Advanced Excel Concepts
Database Concepts
Communicating in a Connected World
Using Spread Sheet Application
Designing Static Web Pages
Internet Concepts
Configuring and Using Networks
Database Management
Image editing, Creating presentations & Using Open Office
Using Word Processing Software
Familiarization with DOS CLI & Linux Operating Systems.
🖥️ Computer Hardware Basics and Software Installation
🖥️ Computer Components and Windows Operating System
Cyber Security
E Commerce
Smart Accounting
Introduction to VBA, Features and Applications
Introduction to JavaScript 🧠💻
Web Design Concepts
Internet Concepts 🌐
Networking Concepts 🌐
🗄️ Database Management Systems (DBMS)
Power Point Presentations
📊 Spreadsheet Application – Trade Theory for COPA
📝 Word Processing – Trade Theory for COPA
🖥️ Introduction to DOS Command Line Interface & Linux Operating System – Trade Theory for COPA
🖥️ Computer Hardware Basics and Software Installation – Trade Theory for COPA
Introduction to Computers and Windows Operating System

Question Paper

Hindi

COPA 2024 – प्रश्न पत्र सेट 11
COPA 2024 – प्रश्न पत्र सेट 1
COPA 2024 – प्रश्न पत्र सेट 2
COPA 2024 – प्रश्न पत्र सेट 3
COPA 2024 – प्रश्न पत्र सेट 4
COPA 2024 – प्रश्न पत्र सेट 5
COPA 2024 – प्रश्न पत्र सेट 6
COPA 2024 – प्रश्न पत्र सेट 7
COPA 2024 – प्रश्न पत्र सेट 8
COPA 2024 – प्रश्न पत्र सेट 9
COPA 2024 – प्रश्न पत्र सेट 10

English

ITI COPA 2023 Question Paper
ITI COPA 2023 Question Paper – Set 2
ITI COPA 2023 Question Paper – Set 3
ITI COPA 2023 Question Paper – Set 4

Common Subject

  • Engineering Drawing
  • Employability Skills
  • Workshop Calculation Science

Directory

  • Industrial Training Institutes
  • Engineering College
  • Medical College

Knowledge Bank

  • ITI Syllabus
  • Tools

Copyright © 2026 Company Name - All rights reserved

Developed and Designed by Alaa Haddad at Flash Web Center, LLC