Problem: Course Information system: Super Class: Specialization Attributes: Semesterid, Courseid Methods: Set the specialization details. Display the specialization details. Sub class: course_details Attributes: course1, credit 1, course2, credit 2, course3, credit 3, course4, credit 4 Methods: Set the values of courses and credits. Find the total number of credits and Return the credits. Display the course details. Driver Class: Display the specialization details and course details. The following information are required for the assignment Properties with proper data types Methods with proper return types and scope Demonstration of OOP feature (Inheritance) Demonstration of user defined package Proper naming convention Proper comments in each program and within program Purpose of each code should be explained. Program Execution (output) Presentation (Word Document)
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:
Problem: Course
Super Class: Specialization
Attributes: Semesterid, Courseid
Methods:
- Set the specialization details.
- Display the specialization details.
Sub class: course_details
Attributes: course1, credit 1, course2, credit 2, course3, credit 3, course4, credit 4
Methods:
- Set the values of courses and credits.
- Find the total number of credits and Return the credits.
- Display the course details.
Driver Class:
- Display the specialization details and course details.
The following information are required for the assignment
Properties with proper data types
Methods with proper return types and scope
Demonstration of OOP feature (Inheritance)
Demonstration of user defined package
Proper naming convention
Proper comments in each program and within program
Purpose of each code should be explained.
Program Execution (output)
Presentation (Word Document)
Step by step
Solved in 2 steps with 1 images