1,089 Topics

Member Avatar for
Member Avatar for Farhan_8

> Hi, i am working on a personal project in which i am creating a ms access database and then connecting it using java to a GUI via UCanaccess .But the problem is how to identify the OOP concepts which should be implemented in my program i need atleaset aggregation,association,inheritance …

Member Avatar for JamesCherrill
0
84
Member Avatar for Farhan_8

Hi, I have been assigned Blood Bank Management System as java oop project.So i was wondering i someone can give me a headstart on which classes and methods to implement first so i can modify them applying all the oop concepts first.This is what i have worked on so far. …

Member Avatar for JamesCherrill
0
310
Member Avatar for lewashby

garrett@mint-desktop /var/www/html/udemy/php-oop/gallery/backups $ tar --exclude-tag-all=backups -cf lesson20.tar ../* tar: Removing leading `../' from member names I have an empty file called backups in my backups directory to keep the tar file from trying to backup itself. Does anyone know why I'm getting this output? -> `tar: Removing leading ../' from …

Member Avatar for Gribouillis
0
463
Member Avatar for jkon

Hello , first of all I need to make clear that although I understand , and have done projects modifying code that is already there (and created my own minions) , in the core of C and C++ I wouldn't consider to know those a bit, I have just a …

Member Avatar for jkon
0
281
Member Avatar for zachattack05

If I implement an abstract class that contains this method: private void MyMethod(string awesomeParameter, int aBigNumber) { // something cool happens here! throw new NotImplementedException(); } can I change it to this without breaking the implementation? private void MyMethod(string myParam, int myInt) { // something cool happens here! throw new …

Member Avatar for ddanbe
0
298
Member Avatar for DS9596

Using an initialization list for a class array variable, what do you use to setup a slot with a 3parameter Ctor?

Member Avatar for rubberman
0
136
Member Avatar for Doogledude123
Member Avatar for JamesCherrill
0
329
Member Avatar for Hamza_9

Hi Guys The thing is that i was asked to make a libaray database managment software for my semester project which i did but now my teacher is asking to give that same project in OOP and i am really bad in that.Can anyone change my program into Object orientied …

Member Avatar for David W
0
248
Member Avatar for jkon

A simple Data Layer for OOP PHP Applications Hello, first of all to understand this tutorial would be best if you have some knowledges about OOP ( https://www.daniweb.com/programming/web-development/tutorials/437592/introduction-to-phps-object-orientation by priteas ) and DB usage (MySQL in this case) with PHP https://www.daniweb.com/programming/web-development/threads/499320/common-issues-with-mysql-and-php by diafol ). What we will try to achieve …

Member Avatar for jkon
4
2K
Member Avatar for jkon

There are some times in my life that I am sure there is a bug in my code but it turns up that the bug was in the language or in the system. This thread is talking about those times. Please share your own relevant experience. I ll start sharing …

Member Avatar for Slavi
0
548
Member Avatar for diafol

## Contents ## Overview 1. Alternatives to Deprecated mysql_* Functions 2. SQL Injection: What to do with $_POST and $_GET variables 3. How to Insert Tablenames and Fieldnames Properly 4. What to do With Dynamic Values? 5. How to Use Aggregate Functions (COUNT, SUM, MIN etc) 6. How to Paginate …

Member Avatar for developer707
6
5K
Member Avatar for Stefce

Hello guys i have a really dumb problem i have two classes the first class is where the input value needs to be applied/readed and the second is where is inputed i do not know how to do that please someone help me This is where it is inputed the …

Member Avatar for Stefce
0
255
Member Avatar for ddanbe

Inheritance with generic types can sometimes be tricky. If you would inherit from a Stack<double>, no problem, but what if you want to keep it as generic as possible? Maybe it's a bad idea, but I wrote something like `class Stacker<T> : Stack<T>` and in Stacker I implemented some arithmetic …

Member Avatar for JOSheaIV
1
778
Member Avatar for sneekula

In the last couple of threads people have used the Python class, but really don't seem to know how to use them properly, or why to use them. Hence my question: "Why would you use a class in Python?" I though only Java forces you to use OOP.

Member Avatar for Vineetha_1
0
4K
Member Avatar for vegaseat

This is the updated version of the Tiny Tkinter Calculator. It has more power, since you can type in functions contained in the Python math module then press the equals key. You can then move the result into memory for other calculations. The code is written in OOP class style …

Member Avatar for vegaseat
4
2K
Member Avatar for Mahnoor_1

Ok guys ! I'm trying to study operator overloading. which i found the toughest article in OOP :( I tried a code for == operator overloading to check whether both arrays have same elements or not but it isn't working. Can anyone help? Here is my code: #include<iostream> using namespace …

Member Avatar for aleeha.saqib.5
0
241
Member Avatar for can-mohan

Hi, As we know constructor doesn't have any return value so it is not good idea to perform exceptional handling inside constructor.SO i would like to know if i am opening a file inside constructor and due to some reason (file not exist) failure happened inside constructor then how to …

Member Avatar for can-mohan
0
393
Member Avatar for Codeyjj

Hey guys, I am new to the community so I wanna say thanks in advance for the advice. I am 20 years old and very interested in game developement. My programming background is limited as I have only been practicing for about a year total now and in scattered time …

0
142
Member Avatar for UK-1991

Hello, I am trying to connect with the database but the file contains OOP programing that is little bit unfimiliar for me if anyone help me out in connecting with the database. Db_connect.php <?php class DB_Connect { var $dbuser; var $dbpass; var $dbname; var $dbhost; // constructor function __construct() { …

Member Avatar for diafol
0
2K
Member Avatar for edbr

im trying to work/modify with a class i downloaded. sadly im not getting it. I have yahoogled oop and its not making me any wiser. can some one explain please what i shold be doing? first of all the classes have a number of vars in the original form like …

Member Avatar for edbr
0
142
Member Avatar for Gideon_1

Hello everyone, it seems that most often many projects or let me say jobs requires PHP frameworks. But I have not used a framework before and I love coding in the actual php OOP syntax. Is it necessary to use a framework for a project?

Member Avatar for diafol
0
229
Member Avatar for Gobroski

I am attempting to write a Hangman game using OOP. I have it done using procedural programming. I am not looking to make it a two person game yet. What Objects and methods would you all use? I was thinking newWord = class(tObject) word : string, definition : string, typeOfSpeach …

Member Avatar for Gobroski
0
227
Member Avatar for iamthwee

So it seems google's go is changing the programming landscape, well there probably were other languages out there before but the google-sphere seems to deliver more clout, people take notice. Google Go appears to have done anyway with classical OOP, especially inheritence, although it can be realised via other ways. …

Member Avatar for vegaseat
1
845
Member Avatar for Curious Gorge

I've been working on this project for about two weeks now. Essentially it checks the date, finds events for the day, tells you about them and even lets you plan new ones. Thinking this would be a great deal easier than it became, I thought I would have gotten further …

Member Avatar for Frederick2
0
468
Member Avatar for Aeonix

I have been cuddling with OOP programming. JavaScript seemed like a good start. I went to w3schools.com. function person(first, last, age, eye) { this.firstName = first; this.lastName = last; this.age = age; this.eyeColor = eye; this.name = function() { return this.firstName + " " + this.lastName this.capitalize = function() { …

Member Avatar for Aeonix
0
227
Member Avatar for gangsta gama

Hey guys! I have a quick question that I think is a simple mess up. I am trying to make a console word game in c#, and I have different classes, and a main class that calls those classes. I first have the Player class, and the CreateCharacter class. My …

Member Avatar for JamesCherrill
0
255
Member Avatar for jkon

There is a problem with static variables and functions in how it is used by apps and frameworks in PHP , they are used as global functions or parameters while this is by far what they mean. It is easy to write the same functional or even procedural code in …

Member Avatar for pritaeas
0
305
Member Avatar for gahhon

I have a Task class (superclass) which inherited PracticeTest class(childclass). I'd faced question regarding my pass year question. In fact, we are allowed to declared like this Task aTask = new PracticeTest(); But i wonder why we are doing this way? Thanks for advance explanation.

Member Avatar for JamesCherrill
0
208
Member Avatar for moe11223

I am new to OOP, i am not sure if this is the correct approach or not. Need some insight. Assignment 3 Write a class named CreditCard that has (at least) the following member variables: name. A String that holds the card holder’s name. cardNumber. A field that holds the …

Member Avatar for stultuske
0
4K
Member Avatar for jay.barnes

Hi all I'm trying to set my mysqli connection to my database as outlined in http://php.net/manual/en/mysqli.quickstart.connections.php , with one difference - I'm trying to put my connection parameters in an include file outside of my root folder, to try to secure my DB password. $mysqli = new mysqli("DBServer", "DBUsername", "DBPassword", …

Member Avatar for jay.barnes
0
267
Member Avatar for J.C. SolvoTerra

Hello Dear DaniWeber's. I've been away for some time, and have recently made the transition from VB to C# (Finally). Using C# has opened my eyes to many things that I had either not fully understood, or had a lazy attitude towards. I find myself visiting the core of OOP …

Member Avatar for DaveAmour
0
273
Member Avatar for ddanbe

Is it possible to let an overridden method from a base class to return the type of the derived class? What I mean is: namespace test //with some "pseudo" code { class Base<T> { //fields ... //properties ... // ... public virtual Base<T> BaseMethod() { //return new Base<T>; } // …

Member Avatar for DaveAmour
0
304
Member Avatar for Suzie999

I was working on this function which was quite specific to my project, so thought I'd make it more generic and share it, since I could find very little on the subject in my searching. Code also demonstartes how exceptions can work to your advantage when you know they are …

Member Avatar for Suzie999
1
2K
Member Avatar for ddanbe

For my own use, I'd like to develop a small Vector and a Matrix class, independent of some big libraries that exist out there. My question is: Should Vector and Matrix stay two independent entities or should I derive a Vctor frm a Matrix or a Matrix from a Vector? …

Member Avatar for mike_2000_17
0
363
Member Avatar for can-mohan

Hi guys, I would like to discuss my design with one query. below is the code snippet. It is clear from below code snippet that class pd is privately derived from AbstractClass as both are different classes and there is no relation between them.Now in my class pd i need …

Member Avatar for can-mohan
0
428
Member Avatar for Tycellent

Hey everyone, Got 2 questions here that i'm hoping will be answered. Say i have 2 variables int iValue; int iValueArray[300]; and later on init. them in the constructor Banana::Banana(): ival(0), ivalArray() {} 1. What would the ivalArray() indicate? Would it be the same as initializing every element to null/empty? …

Member Avatar for Tycellent
0
335
Member Avatar for RikTelner

My situations is as follows. `main.cs` is a main script (you don't say, whaaaaaa?), it includes `functions.cs` by `using functions;`. I managed to get OOP working (had some struggle with it, but figured it out). I know that I can pass variables from `main.cs` to `functions.cs` by executing: Class FavVarName …

Member Avatar for RikTelner
0
177
Member Avatar for SkateX

Greetings, I'm working on a class project for fractions and I'm stuck and cannot figure out where to go from here. We have a mandatory driver file we aren't supposed to change. See below for example output and the output I am actually getting. **Sample Output** Enter numerator; then denominator. …

Member Avatar for Nutster
0
543
Member Avatar for GingerDontCare

Hello everyone, I am a little stuck an this simple task. I have created an html with a form that has 2 user input boxes and 4 button +,-,*,/,. Basically a simple calculator. And I have a jsp to process the form. I am trying to now create a java …

Member Avatar for stultuske
0
544
Member Avatar for NoobCoder85

Here is my code: ` #include <iostream> #include <iomanip> #include <string> using namespace std; class Register { //Private members private: //Creating an array for all the Prices static double Price[]; //Declaring RegNUM and RecNUM int RegNUM, RecNUM; //Print out Item name in a loop static string items[]; //Creates a Receipt …

Member Avatar for David W
0
374
Member Avatar for NoobCoder85

The tools Hal’s sells are: Hammers: $10.99 Wrenches: $10.99 Levels: $19.99 Tape Measures: $4.99 Screwdrivers: $8.99 In order to make things easier in the long run you have decided to make a c++ program that takes in all the orders for each register and tallies them at the end of …

Member Avatar for NoobCoder85
0
1K
Member Avatar for mattster

## Introduction ## Ever since the dawn of programming, we have had the luxury of variables, OOP, functions and other lovely tools within our languages. CSS is arguably the easiest language to ever pick up, with everyone having to learn it’s basics. However, it lacks any power, as we have …

Member Avatar for mattster
6
867
Member Avatar for RikTelner

Lately I've been playing around with Unity3D. The one fun thing was, you were able to execute command from another file by using. `GetComponent()`. What you were able to do is, for example set users speed, even though script wasn't attached to player, so you technically were able to execute …

Member Avatar for djjeavons
0
165
Member Avatar for Joemeister

Hi all, I'm trying to access a list in a class made in another class and display it in a listbox but its not working. I most probably have to make a small change to be able to get it to work. So please check in the code if you …

Member Avatar for djjeavons
0
5K
Member Avatar for VengefulToast

Hi fellow members, I have wrote two abstract classes, with the second inheriting from the first. However, I receive this error when I try to compile: "error C2143: syntax error : missing ',' before '<'." Will somebody help me out? Thanks! template <class DataType> class AbstactArrayClass { friend ostream& operator …

Member Avatar for mike_2000_17
0
291
Member Avatar for tewodros addis

#include<iostream.h> #include<conio.h> #include<string .h> int count=0; class record { private: char name[20] int age; int id; char sex; public: void addrecord(); void display(); int getid(); void editrecor(); viod search(); void delet(); }

Member Avatar for JamesCherrill
0
214
Member Avatar for Bile

-I have some codes written in native mysql and so I've been working on changing Myself to mysqli (I managed the procedural way and so I decided to Move forward with OOP ways) and came accross the use of Prepare Function. -Now the problem is I have a page where …

0
89
Member Avatar for ~s.o.s~

***Please don't post "spam" or "Thank you" posts in this thread since this is meant to be used as a guide for all beginners and I am sure we would like it to be on topic. I hope you understand this.*** **» Introduction to Java «** To start off, [Java](http://en.wikipedia.org/wiki/Java_(programming_language)) …

Member Avatar for ~s.o.s~
46
6K
Member Avatar for Bile

Hi Daniweb,I'm trying to modify and upgarde My codes from Native mysql to mysqli. My trail seems to be somehow good as I got My hands with the Php Manual Documentation so forth. The Only point I got stuck is where I implimented the mysql's mysql_affeted_rows() and so changed it …

Member Avatar for Bile
0
212
Member Avatar for PulsarScript

//Hi all just switching from c++ to c#.Can anyone help,with the question i have: //this is a peace of code from c++ banking aplication int ShowMenu(void); void AddAccount(vector<CAccount*>& list); void DisplayAccount (vector<CAccount*>& list); void Lodgement (vector<CAccount*>& list); void Withdroawal (vector<CAccount*>& list); void InterestRate (vector<CAccount*>& list); CAccount* findAccount (vector<CAccount*>string ); bool …

Member Avatar for ddanbe
0
2K

The End.