java language Create the inheritance relationship by doing base class People, derived class Student Modify the Student constructor method to receive data from the People class as an argument. In main modify the creation of student object using constructor to pass attributes of people and student Modify the ShowStudent method so that it displays the People data. In main it will not be necessary
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
java language
Create the inheritance relationship by doing base class People, derived class Student
Modify the Student constructor method to receive data from the People class as an argument.
In main modify the creation of student object using constructor to pass attributes of people and student
Modify the ShowStudent method so that it displays the People data. In main it will not be necessary
Step by step
Solved in 5 steps with 3 images