Which of the following is the correct way to call the constructor of the parent class? Select one: O a. this.call0 O b. super0 O c. this0 O d. super.call) Clear my choice Which of the following class declaration is not allowed to be instantiated? Select one: O a. public class Person {} O b. public abstract class Person {} O c. class Person{} O d. None of these O e. public final class Person {}
Q: Supposed you are building random forest model using pruned ID3 decision trees, which trees, which…
A: Information Gain is defined as :-The(Information Gain(T,X) ) information gain is the decrease in…
Q: Write a program to ask the user to enter (i) a filename and (ii) regular expression. The program…
A:
Q: 2. What are the advantages of using exception
A: In computing and computer programming, exception handling is the process of answering the event of…
Q: To class Tree that represents binary search tree (BST), add the following method: 1- printByLevel ()…
A: Here's your code in java: import java.util.*; class Node { int key; Node left,…
Q: When it comes to IT security, what are the differences between on-premises data center and cloud…
A: Introduction: In contrast to cloud computing, data stored on-premises remains on-premises,…
Q: Consider the following program written in AC language discussed in the class. The tokens and grammar…
A: the solution is an given below :
Q: Java Code Only: The chef gives you an A sequence of N's length. Let X mean MEX for A sequence. The…
A: The program is written in Java. Check the program screenshot for the correct indentation. Please…
Q: Explain the rendering and shading processes, as well as why they are necessary.
A: Computer Graphics: It is an art…
Q: Consider the following weighted digraph, then fill up its adjacency matrix and also draw its…
A: Adjacent matrix Adjacency matrix are used to represent the graph using 2D array of size v x v.…
Q: Q1// write a program in C++, to create a class for calculate the volume of two boxes using class and…
A: The solution to the given problem is below.
Q: Integer is a valid array index type. Select one: O True O False
A: Solution: True: Explanation: Integer is a valid array index type because if we want to access the…
Q: A noiseless channel has a bandwidth of 3000 HZ transmitting a signal with two signal levels. What is…
A: Nyquist Sampling Theorem: A continuous-time signal can be represented in its samples and can be…
Q: Modify task2.c to print out the first 50 numbers from the Fibonacci Sequence. task2.c Fibonacci…
A: Ans: Code: #include <stdio.h>#include <stdlib.h>int main(){ int f1 = 0, f2 = 1, i;…
Q: computer science- What are the dangers of resume screening programmes? How does resume screening as…
A: Introduction: The following are the risks linked with resume screening programmes:
Q: Using Document Object Model (DOM): Modify “src” attribute in the following HTML code, photo1.jpg to…
A: Answer: <script> document.querySelector("h1").innerText = "Hello KSA";
Q: ubnetting (Subnetting) Fill in the blanks. (If possible show your solution) Number of needed…
A: According to the Question below the Solution: 1. Address class: The given network address belong…
Q: dure to control individual
A: Lets see the solution.
Q: What is Standard Error, and what does it mean?
A: The standard error(SE) of a measurement is the exact standard deviation of a statistical sample…
Q: o what extent does an agile approach alter the regular lifecycle of a system?
A: Many organisations are using the agile approach for software development in the recent times.
Q: How are truly distributed systems modeled?
A: A distributed system uses resources from different system located on multiple networks. Distributed…
Q: In java program. Please show the output of the program and run.
A: Answer is given below-
Q: What exactly is an IMSI, where may it be found, and what is it used for? How would a digital…
A: Introduction: The IMSI, wherever it may reside and whatever it is utilised for, is employed by…
Q: Please answer it in Python Write a function min_odd that takes a list as an argument and returns…
A: The python codes are given below
Q: Task 1: [5 marks] Write a Java program named Statistics that computes and display the mean and…
A: Solution: Implementation of readValue method: public static double[] readValues(double…
Q: What is parametric polymorphism in a subprogram, and can you give an example with an explanation of…
A: Introduction: Parametric polymorphism is a programming language method that allows for the general…
Q: AVL Tree Implementation program Important note: You must separate your program into three files:…
A: cpp code: #include<iostream> #include<cstdio> #include<sstream>…
Q: Describe how a stateless firewall would prevent all incoming and outgoing HTTP requests.
A: Introduction: You must allow both incoming and outgoing traffic on the following ports:
Q: 8. Consider the following Java code (Figure 7): O import java.util.Scanner; public class Q8 { public…
A: The solution to the given problem is below.
Q: Write a program in Prolog to translate between non-negative integers and their English names. It…
A: Let us see the answer:-
Q: WRITE A C PROGRAM AND COMMENT EVERY STEP , Write an interactive program that plays a game of…
A: The above hangman code is solved in C Program below:
Q: What will be the values of CF and OF after executing the following code: mov ax,0 sub ax,2 CF= OF =
A: We need to find the contents of CF and OF after executing the given instructions.
Q: R language The object created with the command data.frame((c(1,2), c(3,4), c("a","b")) is a(n)…
A: Ans: The object created with the command data.frame((c(1,2), c(3,4), c("a","b")) is a(n): 3)…
Q: Computer science What are the four types of visibility? Short answer
A: Introduction: In terms of programming, Any variable, class, function, field, or other object's…
Q: Classify each of the following occurrences as an incident or disaster. If an occurrence is a…
A: Part(a) This is going to be a calamity. The company's files should be backed up, and incident…
Q: What is the significance of software development? The software development process may benefit from…
A: Software development :It refers to a set of computer science activities dedicated to the process of…
Q: Finding an algorithm that enables me to find the number of cars from an image using Matlab
A: copy and paste the code in Matlab and set the image and get the output that shows as like the step…
Q: Provide a written statement of any problems you encountered during the normalization process and…
A: Entity relationship diagram (ERD), this is the most widely used technique for data modeling Data…
Q: What does the term "utilitization" mean in the context of networks?
A: Introduction: Utilization: The word "utilisation" literally means "the use of specific items."
Q: ferring data contents from the remote source to the local device (like mobile phone)? a.…
A: Transferring data contents from the remote source to the local device (like mobile phone)?…
Q: When is it appropriate to use Word for a table rather than a tool like Excel? What are some of the…
A: Introduction Navigate to the Ribbon Insert tab to add a new item to the worksheet.To see the…
Q: 27 For a 128GB of 32-bit Data memory, which is more suitable to be used for design of this memory :…
A: The solution to the given problem is below.
Q: Please compute the difference series of the series below (-999 for not available): T1 T2 T3…
A: We need to compute the difference series of the series given.
Q: Virtualization simplifies the use of resources, isolates users from one another, supports…
A: The answer as given below steps:
Q: Check applicable statements that describes a typical network switch (L2 switch) and its usage:
A: Solution: Given, Check applicable statements that describes a typical network switch (L2 switch)…
Q: backs in tabular form. (Dear sir and mam please solve this answer, its urgent, 100% accu
A: The model (DAO) is comprised of application data and business rules, while the controller (Servlet)…
Q: Total = a +b+ c; Average = Total / 6; A. Logic Errors В. Run-time Errors C. None of the above D.…
A: A programming language must follow rules and regulations to execute task successfully. Logical…
Q: 3. The table below represents five lines from a cache that uses fully associative mapping with a…
A: Mapping Combinatorial: This indicates that perhaps the phrase id bits are being utilized to…
Q: Hi! Please I want this written in Java programming language. Don’t forget to use documentation…
A: ALGORITHM:- 1. Take input for the grades from the user until he/she enters invalid grade. 2. Keep…
Q: Which step of the compiler would throw an error if you attempted to add an integer to a character…
A: Solution:- Third step or phase of compiler i.e Semantic Analyzer would throw an error if you…
Q: A wide range of guidelines, principles, and rules have been developed to help designers to ensure…
A: Shneiderman's eight golden regulations are intended to assist designers solve problems, and for this…
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
- What is true about private fields of a class? They must be used with private methods. They are accessible from anywhere inside or outside of a class. They can never be used in a class. They can be accessed only by methods inside the class they are associated with. Which of these keywords is used to refer to a member of a base class from a subclass? power super this upper Which of the following is true about abstract classes? Note that if a class can be sub-classed, this simply means that it can be derived from. Abstract classes can only contain abstract methods. They cannot be sub-classed. Abstract classes cannot be instantiated, but they can be sub-classed. Abstract classes can only contain abstract methods. They can be sub-classed. Abstract classes can be instantiated, but they cannot be sub-classed.Which of the following are true? If we derive a class from an abstract class, we can select which methods we choose to implement in our derived class. Abstract classed cannot have concrete methods. We can declare an instance of an abstract class. All of the above statements are false.Which one is true? A) An inner class can be declared public or private subject to the same visibility rules applied to a member of the class. B)An inner class can be declared static. A static inner class can be accessed using the outer class name. A static inner class cannot access non-static members of the outer class. C)An inner class supports the work of its containing outer class and is compiled into a class named OuterClassName$InnerClassName.class. D)Inner classes can make programs simple and concise.
- Create a class Course, which has one field: String courseName Create the constructor, accessor, and mutator for the class. Then, in the main method of this class, create an instance of the class with the name "CST1201". Write an equivalent while statement to replace the following for statement for (int i=2; i<100; i=i+2) { System.out.println(i); }What is an abstract class? Choose only one option.(a) An object(b) A class with no methods.(c) A class with no concrete subclasses.(d) A class with at least one undefined message.(e) An interface.We have two classes, Person and Employee. Both have a field, firstName. We have instances of these objectsPerson p and Employee e. Both p and e have the same value for firstName, specifically, p.firstName = “joe”and e.firstName = “joe” Which of the following statements is necessarily true? Group of answer choices 1. p.equals(e) will return true because they contain the same firstName. 2. We don’t know if either class will have an equals method. 3. There is not enough information to tell what p.equals(e) will return. 4. p.equals(e) will return false but p == e will be true.
- Write a program named SalespersonDemo that instantiates objects using classes named Real EstateSalesperson and GirlScout. Demonstrate that each object can use a SalesSpeech() method appropriately. Also, use a MakeSale() method two or three times with each object, and display the final contents of each objects data fields. First, create an abstract class named Salesperson. Fields include first and last names; the Salesperson constructor requires both these values. Include properties for the fields. Include a method that returns a string that holds the Salespersons full name—the first and last names separated by a space. Then perform the following Create two child classes of Salesperson: Real EstateSalesperson and Girl Scout. The Real EstateSalesperson class contains fields for total value sold in dollars and total commission earned (both of which are initialized to 0), and a commission rate field required by the class constructor. The Girl Scout class includes a field to hold the number of boxes of cookies sold, which is initialized to 0. Include properties for every field. Create an interface named ISell able that contains two methods: SalesSpeech() and MakeSale(). In each Real EstateSalesperson and Girl Scout class, implement SalesSpeech() to display an appropriate one- or two-sentence sales speech that the objects of the class could use. In the Real Estatesalesperson class, implement the MakeSale() method to accept an integer dollar value for a house, add the value to the Real EstateSalespersons total value sold, and compute the total commission earned. In the Girl Scout class, implement the MakeSale() method to accept an integer representing the number of boxes of cookies sold and add it to the total field.Create a class called Employee as a a derived class of the class Person. An employee record has an employee's name, address, gender(inherited from the class Person), an ID number whose type is String, an annual salary represented as a single value of type double, and a year the employee started work as a single value of type int. Your class should have a reasonable number of constructors and setter methods, as well as getter methods. Create another class containing a main method to fully test your class definition.Create a class called Employee as a a derived class of the class Person. An employee record has an employee's name, address, gender(inherited from the class Person), an ID number whose type is String, an annual salary represented as a single value of type double, and a year the employee started work as a single value of type int. Your class should have a reasonable number of constructors and setter methods, as well as getter methods. Create another class containing a main method to fully test your class definition. programming language to be used is java
- Give a complete definition of a class called TitledPerson, which youderive from the class Person in Listing 8.1. The class TitledPerson hasone additional String instance variable for a title, such as Ms., Mr.,or The Honorable. The class TitledPerson has two constructors: adefault constructor and one that sets both the name and the title. It hasa writeOutput method, a reset method, an equals method, an accessormethod getTitle that returns the title, and a mutator method setTitlethat changes the person’s title. For two titled people to be equal, theymust have the same name and the same title. You may want to use theclass Student in Listing 8.2 as a model.Create a class called Employee as a a derived class of the class Person. An employee record has an employee's name, address, gender(inherited from the class Person), an ID number whose type is String, an annual salary represented as a single value of type double, and a year the employee started work as a single value of type int. Your class should have a reasonable number of constructors and setter methods, as well as getter methods. Write another class containing a main method to fully test your class definition.1) Change the visibility of the variables and constructor in the Employee class to be more secure 2) Add an Admin class with the following features: a) The Admin class is a child of the Employee class b) Admin objects have an instance string password variable c) The Admin class has a 4 parameter constructor. One parameter sets the string, the other three parameters are used as arguments for a parent constructor call. d) Admin objects have an instance getInformation() method with a void return and an Employee object parameter. The method will request the calling Admin’s password and check user input. If input matches the password, the method will display the information of the Employee parameter Please use ***C Sharp** Language to answer the code