1,089 Topics

Member Avatar for
Member Avatar for StaticX

Hi,Im having a hard time understanding the fundamentals of Object oriented programming.Ive made a really simple program that allows a user to enter a number, and then i have a function that doubles this number and returns it. But im still having the same errors that i had when i …

Member Avatar for mikiurban
0
109
Member Avatar for Namibnat

I am sorry to ask such a beginner question: I am just learning to use classes and objects in php and would like to know one simple thing - how to you reference one function (or should I call them methods?) from another within the class. When I specify a …

Member Avatar for omoabobade
0
162
Member Avatar for tiara

Hello guys.. I am really new to OOP (object-oriented programming) with C++. I am trying to make a simulation window program. I have a bit confused about apply linked-list inside the class. I mean, I am trying use linked-list to do adding item menu. Yes, I make the lists of …

Member Avatar for tiara
0
73
Member Avatar for ahmedshayan

1. Create a class Account that has following instance variables: a. private account number (string) b. private account holder name (string) c. private balance (floating-point) d. private account opening date (string) e. profitRate (final, floating-point): 5% for all accounts Supply a default constructor, a parameterized constructor, and a clone constructor. …

Member Avatar for javaAddict
0
785
Member Avatar for dhanh90

I'm new to java.I write the code and dont know why its wrong.Someone can point out and modify it for me.thanks alot. Here the code[CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package OOP; import java.util.Arrays; import java.util.Scanner; /** …

Member Avatar for sneaker
0
323
Member Avatar for Phil++

This might seem really, really cheeky (shout at me if you want) but if anyone has the time and wouldn't mind reading through my assignment, telling me if the information looks OK (it's only for a pass so not much detail is required) I'd be more than grateful. Thanks :) …

Member Avatar for Ancient Dragon
-1
121
Member Avatar for srk619

i need to write code for two "robots" that will chase each other around the screen. im stuck on a command which is the step(x,y) command which take the (x,y) coordinates of the other robot as a parameter which should just contain "pass" and will be overridden by the subclass. …

Member Avatar for jlm699
0
103
Member Avatar for lewashby

I more than half way through the book "Python programming for the absolute beginner" 2nd Ed. and things are really starting to get hairy. The book has me to write some code just before or after explaining each part. But I have to really concentrate on the paragraph I'M reading …

Member Avatar for willygstyle
0
305
Member Avatar for lewashby

I more than half way through the book "Python programming for the absolute beginner" 2nd Ed. and things are really starting to get hairy. The book has me to write some code just before or after explaining each part. But I have to really concentrate on the paragraph I'M reading …

Member Avatar for vegaseat
0
120
Member Avatar for krankzinnig

Hello, I am writing an OOP wrapper for the SDL libraries and am coming across an issue. I am trying to make a GLUT like call back system for the render loop and etc and getting strange results. Here is my code for my draw function that uses the call …

0
46
Member Avatar for jkiefer

OMG I need help! I have spent so much time on this. I have to make a mortgage calculator in c++ oop. WTF am I doing wrong, please help.[code]// Mortgage2.cpp // #include "stdafx.h" #include <iostream> #include <math.h> #include <string> //#include <stdafx.h> using namespace std; class mortgagePayment { public: double m_principle; …

0
43
Member Avatar for Dixtosa

there are many info about it but what does this mean? what does object orienting mean? and what Oriented prog. language is better? sorry for my weakness english. :)

Member Avatar for BestJewSinceJC
0
89
Member Avatar for ENetArch

I have a new product, called Ladder. Ladder is an information management tool that allows application developers to focus on building Web pages that capture data and present it to end users. Web applications built on Ladder can be extended without changing the existing object model of the application, or …

Member Avatar for ENetArch
0
101
Member Avatar for sleight

So, hi, this is my first post here. I can't find a good source for my problem here. My problem: Creating a linked node using classes. I managed to create a list of linked nodes but the problem was that I forgot to delete the nodes I created so now …

Member Avatar for sleight
0
204
Member Avatar for smerny

Hello, I'm trying to learn how to create a very simple class just to get the basics of OOP in python. I figure just to learn I'll start with a class where I can create an object and use a method to update a string associated with that object and …

Member Avatar for JasonHippy
0
159
Member Avatar for patto78

Hi, The following code (BLOCK 1) is intended to simulate a television by creating it as an object, and is it stands I am pretty happy with it. Having created a volume control however, I then wanted to add a brightness and contrast control. My first attempt at doing this …

Member Avatar for Mathhax0r
0
72
Member Avatar for yorro

How do I use the User-Controls as a form within a Form? This is my answer to my problem located on [URL="http://www.daniweb.com/forums/thread214973.html"]this thread[/URL] As seen in the original thread's solution, I've used solution #2. Instead of switching forms, I've used switching panels and the controls are contained in those panels. …

Member Avatar for yorro
0
2K
Member Avatar for Stefano Mtangoo

Help me inspect this code. I cannot see error by myself. here are the codes for inc.database.php I'm learning OOP with PHP (I extensively using it with python but I'm noob to PHPiing) [CODE=php] <?php class Connectdb{ private $DATABASE = "site_contents"; private $HOST = "localhost"; private $USER = "root"; private …

Member Avatar for Stefano Mtangoo
0
148
Member Avatar for ClimaxBeetle

This is actually a quiz in our Algorithm Analysis and Design class where we're provided a 9x9 sudoku table filled with few numbers. Now, our teacher allowed us to use any programming language, provided that it's [b]structural[/b] and not OOP, in order to come up with a sudoku solver app. …

Member Avatar for JugglerDrummer
-1
81
Member Avatar for Schoorsteen

I had a rather short question, doesn't OOP Programming make you increase the amount of executed queries? [code=PHP] class Guild{ private $members[]; private $sName; private $iLevel; function __construct($guildId) { // get all information from db using the guildid // also get all memberid's from the db and pass these trough …

Member Avatar for Schoorsteen
0
129
Member Avatar for staticvoyager

Okay... So I've actually made it to the final project in my Intermediate Visual Basic class. Yet, I'm still feeling stupid - like I've never attempted any project at all. I think my main confusion in this project is that we're using two seperate sequential files. I CAN and HAVE …

Member Avatar for sknake
0
205
Member Avatar for Lisa Hoover

Everyone is talking about how open source technology is the answer to budget cuts and belt tightening in the workplace. There's no denying its use is on the rise and, in fact, the Linux server market is predicted to extend into the tens of billions over the next few years. …

0
445
Member Avatar for Techwriter10

Web 2.0 came crashing into the enterprise a couple of years ago and was given the new moniker: Enterprise 2.0 (which was coined by Harvard Business School Professor [URL="http://blog.hbs.edu/faculty/amcafee/"]Andrew McAfee[/URL]). While business has come a long way when it comes to understanding social networking tools and how to use them …

Member Avatar for brodjustice
0
177
Member Avatar for deostroll

Well, for all those who do not know me: my name is arun. But this name is all too common in this world. So well for online purposes I have another name - deostroll. How I got that name? It wasn't assingned to me by someone; rather I had come …

0
62
Member Avatar for warbird43

Link List for the beginners of cpp, who want to get the idea about link list before starting OOP. its implemented by struct for best teaching the design standards to beginners.

Member Avatar for warbird43
-1
240
Member Avatar for seakayaker

I am new to OOP. Before I did my best never to use global variables and it worked fine. But with OOP I find that I am starting to use global variables... very frustrating indeed. How do you prevent it? Let me give you an example. Assume you have a …

Member Avatar for seakayaker
0
166
Member Avatar for Acute

Hi, guys! I'm new in OOP, so i have some problems here... I'm doing a model of an elevator. There are three classes: building, elevator(which is located in a building), passenger. I have a class "building" which contains as a composition another class -"elevator". Class "elevator" has buttons(function-elements) inside, such …

Member Avatar for Acute
-2
126
Member Avatar for pspwxp fan

Hi, I know theres a huge sticky up about C++ books, but i simply need some advice :) . I learned very basic c++ from a book called [url=http://www.amazon.com/Introduction-Programming-C-Diane-Zak/dp/0619217111/ref=pd_rhf_shvl_2]"An Introduction to programming with C++"[/url]. This included taught basics like arrays, functions, Sequential access files and stuff. It also covered basic …

Member Avatar for Tom Gunn
0
82
Member Avatar for seakayaker

Hi, I am new to OOP and I have ended up in a situation that might force me to abondon some of the flexibility I had in mind in my project. Before I do so, I figure I'd ask here to see if there is an easier fix for me. …

Member Avatar for seakayaker
0
129
Member Avatar for daviddoria

I have an abstract class NetworkTest and some derived classes PingTest, SMTPTest, and POP3Test. Each Test class overrides a Run() function and has it's own private member variables. I have a txt file for each type of test - ping.txt, pop3.txt, smtp.txt that defines the tests that should be run, …

Member Avatar for daviddoria
0
68
Member Avatar for iamwa

i have some basic knowledge of oop in java like polunophisum , inheritance etc but i do not about techniques like coupling and cohesion plz help me

Member Avatar for JamesCherrill
0
27
Member Avatar for bsod1

Hi guys, firs of all, im sorry for my bad english.. How can i learn OOP, its really hard and detailed. Firs of all, i dont know why i must use OOP. Thanks..

Member Avatar for bsod1
0
119
Member Avatar for CNSKnight

While I am a veteran OOP programmer, I am stumped on aspects of the scope of javascript objects. What follows is a self-contained custom javascript class who's function is to manage a suite of containers as accordion sliders. I got it to work but must-be I'm not sure why it …

Member Avatar for CNSKnight
0
224
Member Avatar for Dia.A

Hi everybody, I'm trying to make a strategy game using C++ ,a simple game, my objective is to improve my way in oop analysis, currently I don't have an idea on how to do many things in this game, but I think of making it my companion in learning the …

Member Avatar for mrnutty
0
132
Member Avatar for telcontar

I'm planning to do a simple game engine (the core functionality in c++) from my own and I want to start with the scripting engine as I want this to be very 'modable', I did not coded anything yet, so suppose that exists a OOP scripting language in which I …

Member Avatar for telcontar
0
122
Member Avatar for StephyGraph

Class Fraction You are asked to develop a relatively complete mathematical module on fractions. You are required to use OOP concepts ONLY. Part A Create a class called Fraction Its data members are: numerator, denominator, fraction_value, slash, whole_number. Fraction_value: stores the fraction decimal value. Slash: ("/"): is common to all …

Member Avatar for tux4life
-2
158
Member Avatar for NewToThis

I've been trying to build a java program to display the date in a MM/DD/YYYY format with constructors to link the return data, this is the initial sequence and was wondering about my get and set statement; and their format. // Date class with a constructor to // to initialize …

Member Avatar for JamesCherrill
0
77
Member Avatar for daviddoria

I have a class called Scanner which casts rays into a 3d scene and records the resulting intersections. It has the following type of properties: Location (a 3d point) Forward (a 3d vector) Up (a 3d vector) min/max angle (the bounds of where to cast rays) theta/phi step (the directions …

Member Avatar for Tom Gunn
0
121
Member Avatar for telcontar

Hi, kind of new in PHP since I'm reading a 'novice to pro' one :) I was wondering how php experienced users deal with these two (at least for me) hot topics? What's your way of implementing it? Is there any 'convention' about this and not a merely a personal …

Member Avatar for ShawnCplus
0
100
Member Avatar for Barefootsanders

Hi all. I have a current PHP script which checks a number of GET, POST, and REQUEST variables. These are currently in a top-down PHP file and these variables control the flow of the application. I want to convert file to a PHP class, create an object and then access …

Member Avatar for iThaos
0
1K
Member Avatar for abby2589

can i ask for a help? can you give me an idea to improve our program? another feature? our program is about computing a telephone bill.. -thanks!-

Member Avatar for Lerner
0
105
Member Avatar for super.mina

I am learning Object oriented programming using C++ , i wonder if there is any site or book that have open source programs to teach OOP in C++ ....... I want to learn how to use OOP in programming how to implement it ..... If any one can help i …

Member Avatar for jencas
0
89
Member Avatar for umair125

i am doing bscs from GCU lahore PK.i have assigned a project name as MOVIE RENTAL STORE using OOP concepts plz help me to do my project i,ll b thankful to you, umair ahmad

Member Avatar for Ancient Dragon
-1
480
Member Avatar for yakovm

Hello In many OOP languages "this"(or something similar) is used to point to current object. But i think its an object by itself. Here is what i found" polymorphic object which can point in different times to different object`s types" I like to get some more information about this maybe …

Member Avatar for BestJewSinceJC
0
219
Member Avatar for adamramadhan

[ICODE]<?php class ShopProduct { public $title; public $content; function __construct($title,$content) { $this->title = $title; $this->title = $content; } function getProducer() { return $this->title; } function getContent() { return $this->content; } function foo() { echo "hello!";return 1; } // end class shop product } $product1 = new ShopProduct('Product 1','somegirls'); $product2 = …

Member Avatar for emarshah
0
91
Member Avatar for fatalbert55

Hello All, I am trying to learn C++ on my own, but I think I am having some problems with Code::Blocks. I am familiar with Java (I did some CS as an undergrad) and I feel that the C++ basics are pretty easy to translate from Java; however, I am …

Member Avatar for fatalbert55
0
287
Member Avatar for hypernova

I am searching for a book(s) which explains things like the following - 1. Difference between memory allocation of local and global (or other static variables)....? (or why i cant initialize a global variable more than once outside main and all other functions) 2. Holes in structures, and structures and …

Member Avatar for Tom Gunn
0
147
Member Avatar for EvilDavo

Hi. You've probably been asked this a million times in one form or another but, .... What is the correct way to write a C++ OOP program (eg. for a game)? I've researched the concepts of OOP several times over a long period of time and I have a (seemingly) …

Member Avatar for EvilDavo
0
206
Member Avatar for TobbeK

Hi I like some beginnerhelp in C# and the basics of OOP. I have coded a bit but need some further guidance to continue. This is an application with the purpose for my own training in capsulation, Inheritance and Polymorphism. Also see the attached image of user interface. I need …

Member Avatar for TobbeK
0
95
Member Avatar for Zcool31

Hello everyone! I am trying to use polymorphism to have a little physics simulator that draws objects to the screen. Each object has properties like mass, friction, position, velocity, acceleration and such similar things, as well as a pointer to a SHAPE object which describes the shape of the object. …

Member Avatar for Zcool31
0
232

The End.