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.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 9RQ
icon
Related questions
Question
100%

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.

 

Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Reference Types in Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT