Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

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 objectIn 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.

Step by Step Solution

3.39 Rating (152 Votes )

There are 3 Steps involved in it

Step: 1

lecturerprogramcpp include include include include using namespace std class ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Java Programming

Authors: Joyce Farrell

9th edition

1337397075, 978-1337397070

More Books

Students also viewed these Programming questions

Question

Establish identity. cos( + k) = (-1)k cos , k any integer

Answered: 1 week ago