Question
a) The following code is written in Java: public abstract class Theme Park { private String name; private int ICNO; Public Theme Park (String name,
a) The following code is written in Java: public abstract class Theme Park { private String name; private int ICNO; Public Theme Park (String name, int ICNO) { This name = name; This.ICNO = ICNO; Public class Indoor extends Theme Park { Private boolean FunWorld; Private boolean Snowworld; Public Indoor (String name, int ICNO, boolean FunWorld, boolean SnowWorld) { super (name, ICNO); this.FunWorld = FunWorld; this.SnowWorld = SnowWorld; }} Based on your observation, list ONE (1) characteristic of object-oriented programming available in the above code and explain. (2 marks)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started