Question

Write a java program to create an abstract class Student. Inherit UG_Student class and PG_Student class from the Student class. Define constructors and appropriate methods to display details of students. Make necessary assumptions.

01 Dec 2023
Answer :
Word Count : 738

JAVA PROGRAM:-

// Abstract class Student
abstract class Student {
    private String name;
    private int age;
    private String studentID;

    // Constructor for Student class
    public Student(String name, int age, String studentID) {
        this.name = name;
        this.age = age;
        this.studentID = studentID;
    }

    // Getter methods
    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public String getStudentID() {
  ____ ________ _______ ________ ___ ____ ________ _________ ______ ______.
________ __________ ___ ______ _________.
________ ___ ___ ___ ___.
_________ ______ _________ ____ ____ _________ _______ ________.
________ _____ ___ __________ __________ __________ _________ ______ ___ __________ __________ ____.
___ __________ ______ ________ _______ ________ ___.
________ __________ _________ ___ ______ _________ _____.
_______ _____ ______ ______ ______ _____ __________ __________ ________ _______.
________ __________ ______ ____ _________ ____.
__________ __________ _____ ____ ______ _______.
_________ _________ _____ __________ ______ __________ _______ __________ ________ ___.
____ __________ ____ ____ __________ _______ _________ ____ ______.
____ _________ ______ ___ ________ ____ ____ _________ _____ ______ ____.
_______ ____ ______ _____ _________ __________ _______ _________ ________.
______ _________ _______ ______ ________ _____ _____.
_______ ___ _________ __________ __________ _______.
_____ _________ _______ ___ ______ ________ ________ _________ __________ _______.
___ ___ ___ ___ ____.
_________ ____ ______ ____ ___ ______ _________ ____ ____ __________ ________.
_________ _____ _______ ____ _______ ______ ______ _________ ________ ______ _______ ____.
_______ ________ __________ _____ ________ _________ ____ ________ ________ ___.
_____ _________ ____ ________ _________ ____ __________ ___ _____.
_______ _______ _____ ____ ______ ________ __________ _________ ______ ______ ______.
______ _____ _____ ______ _______ ___ ____ _________ __________ _________ ______.
_____ _________ ______ ____ ________ ________ __________ ___ ___ ___ ______ _____.
___ ____ _______ _____ _____ ______ _________ ___ _________.
______ ________ __________ ___ _______.
______ _________ _____ ___ ___ _________ _________ _____ ________ ____ _____.
___ _________ ________ _____ __________ ___ __________ ________.
______ _____ _________ _______ _____.
______ ___ ___ ______ ___ ___ ________ _______ _____.
_____ _______ _________ _____ ___ ____ _______ _________.
___ ______ ________ ____ ________ ____ ________ ________ __________ _____ __________ ___.
_________ ______ __________ ____ ______ ____ ____ ____.
___ ______ ___ ______ ___.
______ ______ ______ _________ _________ __________ ___ ______ ______.
______ ________ __________ __________ _____ ____ _______ _____ _________.
__________ _____ ____ ___ ________ ____ __________ _____ _________ __________ ____ _____.
______ ________ ______ ______ _____ ____ ________ ____ ______ __________.
___ ____ __________ ____ ____ _________.
_______ ____ _______ ______ __________ _________.
____ ____ ________ ___ ________ ________ ______ ________.
____ _________ ______ ______ ____.
___ _________ ____ ____ ______ ________ __________ _______ _____.
_____ __________ __________ _______ _____ _______.
_____ _________ ______ ________ _________ ______ ________.
________ ________ __________ __________ __________ ______ ______.
__________ ________ ___ _____ _____ _______ ________ _________ ________ _____ ________ __________.
_______ _____ ____ __________ _______ _____ _________.
_______ ___ _____ _______ ________ ________ ________ _______ __________ ______.
___ ____ _____ ________ ________ _____.
_____ ___ ______ ________ _____ ______ _______.
________ __________ _______ _______ _____ __________ ____ ______.
___ ________ ____ ________ _______ ____ _____ ____.
__________ ___ ______ _____ ______ ______ ________ ___ __________.
___ ____ _______ _____ ____ _______.
_______ ____ ___ _____ ____ _________ ____.
_______ ____ ______ ___ _______ ___ _______ _______ __________ _________.
_____ __________ ______ ________ ____ _________ _________ _______ _________ __________.
_____ _________ _____ _____ ___.
______ _____ ________ ___ _______ _____.
__________ _______ ______ _________ ___ __________ ______ _________ _____.
_____ __________ __________ ______ ________ __________ __________.
_________ _____ _____ ____ ______ ________ __________ ___.
_____ _____ _____ _____ _________.
______ __________ __________ ________ ____ ___ ____ _____ ________ _______ ___ ___.
_____ ___ ______ ______ ___ _____ _________ __________ ______ _____ ______ ______.
________ _______ ________ ________ ______.
________ ___ _____ _______ __________ ___ ___.
_____ _________ ____ _____ _________ ___ _________.
____ __________ ____ __________ _______ ___ _________ ___ _____ ______ _________.
___ _____ _____ _______ ______ __________ ______ ______ _________.
_______ _________ __________ ____ __________ ______ ________ _______ _______ __________.
_________ ________ _________ ________ _________ __________ _________ ________ ___.
Get Full Answer on WhatsApp

IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance Write a java program to create an abstract class Student. Inherit UG_S
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→