of the SimpleGeo
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Add a void testOverriding() method to the SimpleGeometricObject class. Make it print
“This is the testOverriding() method of the SimpleGeometricObject class”.
has code in link but also picture of code below
https://liveexample.pearsoncmg.com/html/SimpleGeometricObject.html

Transcribed Image Text:X b Answered: ava file. In t X
< >C ✰ liveexample.pearsoncmg.com/html/SimpleGeometricObject.html
Lab 5: Inheritance
Show Code With Line Numbers
public class SimpleGeometricObject {
private String color = "white";
private boolean filled;
private java.util.Date dateCreated;
/** Construct a default geometric object */
public SimpleGeometricObject() {
dateCreated = new java.util.Date();
}
/** Construct a geometric object with the specified color
and filled value */
public SimpleGeometricObject(String color, boolean filled) {
dateCreated
new java.util.Date();
this.color = color;
this.filled filled;
=
}
/** Return color */
public String getColor() {
return color;
}
/** Set a new color */
public void setColor (String color) {
this.color = color;
}
/** Return filled. Since filled is boolean,
its get method is named isFilled */
public boolean isFilled() {
return filled;
}
/** Set a new filled */
public void setFilled (boolean filled) {
this.filled = filled;
}
/** Get dateCreated */
public java.util.Date getDateCreated() {
34°F
Cloudy
Introduction to Java Pix
T
■
Q Search
Unit 7 AS1: Assignmer X
a
Files
X
G how do you zoom in cx +
Pa
* =
12:44 AM
3/22/2023
X
:

Transcribed Image Text:X b Answered: ava file. In t X
← → C ✰ liveexample.pearsoncmg.com/html/SimpleGeometricObject.html
MULL COLLO TCW juvuLL\/)
}
Lab 5: Inheritance
}
/** Construct a geometric object with the specified color
* and filled value */
public SimpleGeometricObject(String color, boolean filled) {
dateCreated = new java.util.Date();
this.color = color;
this.filled = filled;
}
/** Return color */
public String getColor() {
return color;
}
/** Set a new color */
public void setColor (String color) {
this.color = color;
}
/** Return filled. Since filled is boolean,
its get method is named isFilled */
public boolean isFilled () {
return filled;
}
/** Set a new filled */
public void setFilled (boolean filled) {
this.filled = filled;
}
/** Get dateCreated */
public java.util.Date getDateCreated() {
return dateCreated;
}
}
/** Return a string representation of this object */
public String toString() {
return "created on
"and filled: " + filled;
34°F
Cloudy
Introduction to Java Pix
+ dateCreated + "\ncolor: +color+
▬▬
■
11
Q Search
Unit 7 AS1: Assignmer X
a
Files
X
G how do you zoom in cx +
Pa
* =
12:44 AM
3/22/2023
X
:
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 3 steps

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

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education