OURSE NAME STUDENT NUMBERS LECTURER DISD Diploma in Software Development 35 Mr Jones DIWD Diploma in Web Development 28 Mrs Smith DIDM Diploma in Data Metrics 39
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:
The college that you attend requires an application that will print out a Course Report. You are
required to create an application that will allocate the following course data:
COURSE CODE COURSE NAME STUDENT NUMBERS LECTURER
DISD Diploma in Software Development 35 Mr Jones
DIWD Diploma in Web Development 28 Mrs Smith
DIDM Diploma in Data Metrics 39 Mr Ntsinga
Create a class named Course_Details that will contain get and set methods for the course name,
student numbers and lecturer. In the Course_Details class include a method called Assign Venue
that will randomly generate a Venue/Class for the course. Venues can be from 1 to 3 only. Your
main class must include a static method to handle the printing of the course report.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps