Lecture

cs

School

Brigham Young University, Idaho *

*We aren’t endorsed by this school

Course

210

Subject

Computer Science

Date

Nov 24, 2024

Type

cs

Pages

1

Uploaded by ChancellorFreedomTapir22

Report
using System; public class Lecture : Event { private string _speaker; private int _capacity; public Lecture(string title, string description, string date, string time, Address address, string speaker, int capacity) : base(title, description, date, time, address) { _speaker = speaker; _capacity = capacity; } public string GetSpeaker() { return _speaker; } public int GetCapacity() { return _capacity; } public string ReturnEventType() { return "Lecture"; } public string GenerateDetailedLecture() { string detailed = GenerateStandard() + "\n"; detailed += "Speaker: " + _speaker + "\n"; detailed += "Capacity: " + _capacity + " max"; return detailed; } public string GenerateShortLecture() { string shortLecture = ""; string eventType = ReturnEventType(); shortLecture += "Event Type: " + eventType + "\n"; shortLecture += GenerateShort(); return shortLecture; } }
Discover more documents: Sign up today!
Unlock a world of knowledge! Explore tailored content for a richer learning experience. Here's what you'll get:
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help