I am wondering how/if I could possibly break this up into multiple classes but keep the values across objects to pass between both. I am unable to get things wo
I'm working on an exercise, where I need to create a subclass that has 2 constructors (1 is empty and sets the values as 0 the other one is getting the values.
Is there a corresponding "@Deprecated" annotation-syntax for methods in .aidl files? I want to mark a method as deprecated, add a new method and promote the use
I'm struggling on this problem, given that I'm probably making a basic mistake or I haven't got a clue what I'm doing. platform being a Zybook the problem rea
I would like to make one method like this: public void SomeMethod(int myInt,<float or double or MyClass> myFloatorDoubleorMyClass) { } And not only with
I understand it's because the program thinks I'm dividing by O, but I'm not sure how to fix it in the program. The program works fine, though. It outputs the av
I am creating a method that takes a percent as a parameter and decreases the price by that percent. public void lowerPriceBy(double percent){ price = price/
I have a method but doesn't have a parameter, for example def goodbye puts "" puts "Thank you, #{name} for using our service." puts "Good luck with
I'm developing Wordle in C++ using a .net graphic interface with visual studio. I have a file.h that contains a class "WordDatabase", and I need to use one of t
I am trying to get auto completion of method parameter names for class instances but can't quite figure it out. Take this example class: class Abc: def meth
While I was trying to grasp reactivity fundamentals and its syntax I've encountered following problem. Consider this snippet: const app = Vue.createApp({ dat
I'm writing an application that retrieves data from a table in a MySQL database and displays it in a JTable. Whenever an insert/update/delete operation is made
Does the .includes method cause O(n^2) when run with another loop such as in this simple example? function myFn(){ let age = people.map(person => {
I am a first year studying app development and I have a login and registration assignment. But Im struggling to make a method where it checks
I know I can find a list of mutator methods on MDN, still, in practice I always forget if methods like push() or reverse() mutates the original array or creates
My question is simple. What method can I use to tell my program that a button is pressed? I'm trying some codelines but its not really working (I tryed with isP
Is there any difference in str.title() vs str.capitalize()? My understanding from the docs is that both methods capitalize the first letter of a word and make t
Am getting undefined error. var fruits = ["apple", "orange", "cherry"]; document.getElementById("demo").innerHTML = fruits.forEach(myFunction); function myFun
I have a MacOS Objective-C project with a parent NSWindow and an NSPanel containing a TableView whose delegate and data source is a class called TableController
I have three classes and two of them inheriting from an Animal class, Carnivore class should have method to decrease health by 50 if I call the method on Herbiv