How to add Student details in java?

Write appropriate member functions. Create another class students, which has id, name, date of birth and marks of 3 subjects as members. Write appropriate constructor for the student which assigns values to the members. Accept the details as command line arguments and create a student object using the arguments.

Read more

What is inheritance in Java?

Inheritance is one of the key features of OOP that allows us to create a new class from an existing class . The new class that is created is known as subclass (child or derived class) and the existing class from where the child class is derived is known as superclass (parent or base class).

Read more