1. Design a class named Videotape with the following: o title data field from type String and private modifier o classification data field from type String and private modifier o time data field from type int and private modifier o no-argument constructor o argument constructor that define title. classification and time o set and get methods for all the data fields o toString method that print information about Videotape(title, classification and time) 2. Design a test class and create the below object then print the information. Title : Welcome to Java Classification : Drama Time : 2
1. Design a class named Videotape with the following: o title data field from type String and private modifier o classification data field from type String and private modifier o time data field from type int and private modifier o no-argument constructor o argument constructor that define title. classification and time o set and get methods for all the data fields o toString method that print information about Videotape(title, classification and time) 2. Design a test class and create the below object then print the information. Title : Welcome to Java Classification : Drama Time : 2
Chapter4: More Object Concepts
Section: Chapter Questions
Problem 11PE
Related questions
Question
100%
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 4 images
Knowledge Booster
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.Recommended textbooks for you
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT