Ask an expert

Get free help from our community of tradespeople

Program in c++

Posted by Voldyy Vold, on
The progrqm has to be in c++ Create a lecturer class with member -data name (name) and department (department). For the Lecturer class, write constructors, get & set methods, and the toString () method, which returns the textual description of the object. Write a Lecture class with data member: - subject (discipline) - weekday (day of the week when it takes place) - hour (start time, integer) - online (boolean value, whether remote or not) - lecturer (object of class Lecturer) For the Lecture class, write: - constructors- get & set methods - method isItMorning (), returning a Boolean value, the result of checking whether the lecture starts at 7-11 - give a new implementation of the toString () method so that it returns the text description of the Lecture object In the test function main () 1. Create objects of both classes and illustrate the use of all possible methods for them. 2. Create an array of Lecture objects and display it on the screen and in a file.

What would you like to do now?

Find more questions Create my Job

Homeowner stories

Homeowner stories - Nick

Nick shares his story of finding local tradespeople in his new area.

app-icon

Get our app for homeowners

  • Send messages and get notifications from tradespeople
  • Add photos to get more accurate quotes
  • View tradespeople’s profiles