There should be a variable called Creation Time that stores the date and time when the record is created.

computer science

Description

Final Project


Requirements: 

Create a class called Data Record with the following attributes:

1. There should be a variable called Creation Time that stores the date and time when the record is created. 

a. This variable should be set automatically upon creation (the user should not have any control over what is stored). 


2. There should be a variable called Entered By that stores the name of the person entering the data. 

a. This variable should be set by asking the user to enter their name. 


Create a subclass of Data Record that stores data that is of some interest to you personally or professionally (before you begin writing your subclass, send me an email with the type of data you are interested in for my approval): 

1. The class should have at least 3 data fields 

a. You should create functions that allow you to set and retrieve the data in each field individually. 


2. Create a method called Show Data that outputs the combination of all the data fields in a nice readable way. 


Related Questions in computer science category