1,089 Topics
![]() | |
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 … | |
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 … | |
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 … | |
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. … | |
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; /** … | |
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 :) … | |
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. … | |
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 … | |
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 … | |
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 … | |
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; … | |
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. :) | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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. … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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. … | |
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, … | |
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 | |
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.. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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!- | |
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 … ![]() | |
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 | |
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 … | |
[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 = … | |
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 … | |
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 … | |
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) … | |
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 … | |
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. … |
The End.