1,089 Topics
![]() | |
Reflect on your experience with object-oriented programming (OOP) in Java. Discuss how concepts like inheritance, polymorphism, and abstraction have helped you in your projects. Share examples and personal insights. | |
if i provide you with my project OOP java can you transform him for me to GUI | |
I have a web page that loads images with a modal, and at the same time is meant to inhibit image piracy by delivering a transparent overlay when a user attempts to make a screen copy of the image. I have two php lines of image scripts which work OK … | |
![]() | Why I want this, is because this is my passion project that I have been want to do this from a long time and I want to get my hands dirty with using the lowest programming language level. Like machine code (binary code). I don't mind if this project is … |
I am still at procedural style programming. And so, oop code samples confuse me. I found this oop style. Any chance you can show me how to convert this to procedural style ? Test the code. It woks fine! https://bytenota.com/parsing-an-xml-sitemap-in-php/ // sitemap url or sitemap file $sitemap = 'https://bytenota.com/sitemap.xml'; // … | |
I've read tutorial on tutorial and I try to work with Object Oriented PHP but the thing is that I find it rather complex. When I create a class I must include it in the current working document. It doesn't work as in Java when the compiler finds the script … | |
# Introduction # As we move into 2022, businesses will continue to look for ways to become more data-driven. This means that knowing how to use Structured Query Language, commonly called SQL or 'Sequel', will remain an essential skill for data scientists, analysts, and developers. In this post, we'll provide … | |
Write a C++ Program (in OOP) to calculate and display an employee's raise and new salary. The program details are the following: A class called SalaryRaise with private data members for the current salary, rate of raise, the raise amount and the calculated new salary. A public function get_inputItems(), task … | |
Write a C++ program (in OOP) with the following details: A class called BankAccount, that will act as a bank account. It contains the following: Two private data members: account_number (int) and account_balance (double), which maintains the current account balance. A Public functions account_credit(), task is to add the given … | |
could anyone help me Write a java program that can add, show, update and delete item(s) in the inventory. Applying any OOP principles in this program. The program will display a menu with the following selection: Inventory Program • Add Item to Inventory • Display Current Inventory • Update Item … | |
I have been looking for a good way to embed vlc in a python tkinter frame. I found a script on stackexchange that does the basic work, but - to embed the vlc in a frame - the script relies upon an oop technique I have asked about before but … | |
Hi guys! I am currently using c++ and I wanted to start doing basics of a game with oop. And I thought MGT would be good. So, the problem is idk where to start with. I'm planning to use only Land, Creature, Enchantment and, Sorcery cards. so is there any … | |
Hello, looking for help in implementing a game. I don't know if anyone is familiar with it. No Third Libraries allowed. I've been on it for 3 weeks and I've been getting a lot of errors. Researching everything and looking for all the help I can get. Keep in mind … | |
Am at an intermediate level in python and tkinter, and have been trying to figure out how to get the code below into some kind of workable form I can understand. What I want to do is, like, if I typed something into the bottom frame, then I'd like to … | |
Hello, I read here on DW [Click Here]( https://www.daniweb.com/programming/web-development/threads/108189/inserting-checkbox-values-in-mysql-php) I would like to know how to insert multiple checkbox values into multiple columns with values of "0" for no or "1" for yes. If possible I would like to keep them in an array such as: <input type="checkbox" name="animal_selection[]" value="tiger"> … | |
Php Seniors, I still on OOP and mysqli. Not on pdo or oop yet. So, kindly show samples to that level, if you must. Can you tell me if this query is ok to get row count ? It works on my side but I need your confirmation. [code] $query_2 … | |
Create a Java program that will compute for the average (Final Grade) of three (3) input numbers (Prelim, Midterm, Pre-final). The input grade should ONLY accept values ranges from 70 to 100, and will display a message if the input grade/s is invalid. The program should also be capable of … | |
I have a program that i need to convert from java to c++... i just need help doing it... heres the java: [code] /* Name: Joseph Coleman Class:CSCI 1302 Assignment: Employee + ProductionWorker Academic Honesty: The integrity of students and their written and oral work is a critical component of … | |
I have a lecture is there anyone who can help me to change the source coding below to OOP C ++ I / O which uses #include <fstream> so that when the file is written can be saved and when the program is closed then we can still write the … | |
***java*** i have a assignment of oop by using java can any body help me pz : Design and implement these four classes Employee, MonthlySalEmployee, HourlySalEmployee, Company and implement the following functions: ⦁ Create an application class with N HourlySalaryEmployee objects and N MonthlySalEmployee objects. ⦁ Create constructors, accessor and … | |
Hey everyone of the c++ world. I am a little stuck. Here is what i am suppose to be doing. Write the program as an object-oriented C++ program that calculates and displays the mortgage payment amount from user input of the amount of the mortgage, the term of the mortgage, … | |
vbScript - Create a Log File Using vbScript Classes Before I retired I was responsible for most of the corporate data plumbing at our control centre. All of the plumbing was written in vbScript. As any maintenance programmer knows, log files are a vital key in identifying and fixing problems. … | |
Hello, I try to create a simple OOP PHP that shows an error: class_lib.php <?php class person { var $name; function __constructor($person_name){ echo "Initialize class"; } function set_name($new_name){ $this->name($new_name); } function get_name($new_name){ return $this->name($new_name); } function __destructor(){ echo "end class"; } } ?> program3.php <?php include("class_lib.php"); ?> <?php $stefan = … | |
I'm jumping into Python/Django, and have been hitting some speed bumps. I'm a somewhat novice programmer. I know the basics, but haven't done anything more than create a PHP webform, and build very simple websites. I have a thousand questions about Django (most centering around Views and customizing the Admin, … | |
Hi, I've recently "inherited" a part built project from a developer who as left our company. He had decided to use Entity Framework but I am finding it to be unstable and slow. I periodically have to reimport objects and stored procedures from the database as the model gets corrupted. … | |
Ladies & Gentleman, Or should I say 'Gentle Ladies' and 'Hard Men' (tough guys)! :winky: Here is my very latest (New Code) reg.php. I have modified it by: * Removing outdated strip tags, mysqli_escape_string. * Bound input parameters on the user reg form. * Added htmlspecialcharacters code on output to … | |
So I have a phone screening for an intern position coming up on Wednesday. I had a moment this weekend when I realized that I know more about procedural programming (and problem solving) than I do about OOP, though I do consider myself a strong programmer. For someone who has … | |
Hi, I am trying to learn OOP with c++ with the help of Turbo C++ version 3.0 and "C++ Primer Plus" by stephen prata. according to the book, the NEW convention for including the iostream header file in c++ is in the following way: #include<iostream> but it causes an error … | |
#include <iostream> #include <stdlib.h> #include <unistd.h> #include <time.h> using namespace std; int createZombie() { if (rand() % 67 < 10) return 11; else return rand() % 10 + 1; } int main() { srand(time(NULL)); char enter; // game starts int playerAlive = true; int playerSkill = 9; int playerScore = … | |
Consider my post in this thread... https://www.daniweb.com/programming/software-development/threads/508038/how-to-change-this-program-to-fully-oop Consider this code... int main() { srand(time(NULL)); char enter; // game starts Player player; // title cout << "Welcome to Zombie War." << endl << "Press [ENTER] to start."; cin.get(); // player name cout << "Please enter your name: "; cin >> player.playerName; … | |
Hi, I have gathered this list of sources to learn php 7. I have ranked according to priority I am giving. Do you pros mind checking them out and then give your own ranking hich onees you give priority to as a good learning source ? Btw, these sources never … | |
Currently writing a program for an OOP course on encapsulation. The program is required to instantiate **only one object in main**, but then instantiate multiple objects, within the first object, to perform calculations on arrays (`Values`)held within each object. I have been taught that I should ensure that objects are … | |
Hi all, I’ve been told to convert a procedural [C++ program](http://pasted.co/cb410afe) into an object-oriented one, using the principals of polymorphism, encapsulation and inheritance. The standard C++ program accepts data values and filter values from the user. It then multiplies these values together using a simple algorithm and prints the output … | |
Hi All, i am curious to know how to set the value (value=10) through B's constructor in below programme. below is example of multiple inheritance. As construction always happens from right to left so it always call the 'C' class's constructor and set the value 20 but as per my … | |
Firstly, I would like to apologize for the massive number of nooby crap questions that come out of my account. I'm an emerging programmer that doesn't always know what he's doing, so I'm sorry. Secondly, the problem. I'm writing this code: class Object(): def __init_(self, vertices, color, name): self.color = … | |
I'm trying to learn OOP and i'm trying to create a class which will select me info from a table and a line that i choose. (trying my best to explain it good, not sure if i'm doing very well tho) This is my code in the class: class SelectQuery … | |
inheritance error is::Error 1 Inconsistent accessibility: base class 'person' is less accessible than class 'employee' using System; using System.Collections.Generic; using System.Linq; using System.Text; //person class public class person { public string name; public double CNIC_no; public void Information() { Console.WriteLine("Enter your name"); name = Console.ReadLine(); Console.WriteLine("Enter your id"); CNIC_no =double.Parse( … | |
just curious. <img src="filepath.jpeg" id="idhere?" /> or <img id="idhere?" src="filepath.jpeg" /> which is valid? are they both vaild? and differences? | |
Hello. We're going into Constructora and super, using extends, subclasses etc. I have this code: class Student { private String name; private String matric_no; public Student(String n, String m) { name = n; matric_no = m; } } class UndergradStudent extends Student { private String programme; public UndergradStudent(String n, String … | |
I'm developing a dirt-simple text editor for personal use, customized the way I like it. My biggest difficulty is with grasping how OOP works. Could you kindly review the following code and suggest improvements (or at least link further information)? Much appreciated. from tkinter import Tk, END, INSERT from tkinter.scrolledtext … | |
Hello guys, i'm trying to show the full name of my user what is logged in. I am new to writing in oop. Im getting a undifined index fullname error. Can anyone help me? /*** for showing the username or fullname ***/ public function get_fullname($userid) { $stmt = $this->db->prepare("SELECT fullname … | |
[CODE]# -*- coding: utf-8 -*- from PyQt4 import QtGui from PyQt4.QtCore import * import sys import os class VideosToMp3(QtGui.QWidget): def __init__(self, parent = None): super(VideosToMp3, self).__init__(parent) ''' Labels and GUI ''' extension = QtGui.QWidget() download_label = QtGui.QLabel("Enter YouTube video URL:") self.download_line_edit = QtGui.QLineEdit() file_label = QtGui.QLabel("Enter file name (optional):") self.file_line_edit … | |
Hi guys, i have an assignment where i have to create a oop text based java game and have no clue where to start or what i need to include. any tips? thanks | |
Hello! I am a freshie, and have OOP Semester project coming up. However I am not sure how far i reach out in terms of project ideas. I am hoping to use C# for the graphics (in whatever i will be doing) . Can you please suggest something INTERESTING ( … | |
Hi,all I need a java parser for parsing any java file in any package,not only existing file ...Can i do this ? how? | |
Hi, in this code how can I calculate coupling between objects CBO in java after parsing java file using registerCoupling method and retrieve any coupling between classes through argument, class name,type and so on ..... | |
Sorry in advance !! I have just finished learning OOP lessons in class, but my teacher he just provided the students a small exercise (class and object). Now, i really want the OOP idea (project) which are related to inheritance, overloading, polymorphism else,or if you have any links that related … | |
I've been learning python and I'm almost finished and I'm learning about oop. I have a question, is it possible to make a looping menu using oop on python (Not using Tkinter, WX) without having to key in the object. I learn better through playing around with what I've learned … | |
Hello guys. I have a school assignment and Im having a trouble doing it. I will ask for help. I have a class Product and I need to make 2 subclasses Chocolate and Whine. Each product has a name, barcode, price and tax. Each product has a method for calculating … | |
Hello guys so i'm quite new to C++ but i already learned OOP and other things so i want to use this little knowledge yet to create some basic program. I wanted to make a program that uses some API's but the problem is i'm not famillar how API's work … |
The End.