1,089 Topics

Member Avatar for
Member Avatar for ceyesuma

Hello. I have 3 classes ; main.java calls gui.java [code] Gui g =new Gui(); g.createAndShowGUI(); [/code] Then I have my menu.java with the actionPerformed() I am trying to call methods of the GUI.java How can I call methods on the GUI.java to and use the methods on that instance of …

Member Avatar for ceyesuma
0
95
Member Avatar for lifeworks

Hi Need some advice - Ive been going more and more OO in my coding, just coming into some best-practice issues... Lets say I have a User object, and the user has some contact details... whats preferential, to call the getUserDetails() and include the layout HTML in that method, or …

Member Avatar for blocblue
0
95
Member Avatar for fiaz ranjha

i have oop in c++ in some detail but i am not familair with java.please help me to write five sentences in prose or cons of this statement "c++ supports more oop features as compared to jave" please help me

Member Avatar for jonsca
0
85
Member Avatar for Stefano Mtangoo

As I said, I would like to make a PHP login /Register system that would be free for anyone. Here I have started. Since Iam not expert, then I will be adding small pieces until something emerges. I hope DW guys will help until it grows to mature. I want …

Member Avatar for vjimatjijoro
0
583
Member Avatar for jerim

I am working on a class assignment that doesn't meet for a few more days. The assignment is to open a text file, and parse the file one word at a time, reading each word into one of 26 arrays based on the first letter of the word. I can …

Member Avatar for jBat
0
496
Member Avatar for fadia

I'm working on this program. There are 3 classes. These two classes [COLOR="Red"]PassengerMenu and SecurityMenu[/COLOR] are inherited from the class [COLOR="Green"]MainMenu[/COLOR] So the main menu would provide the logo and a description (normal cout). Also an access to either the passnger menu or the security menu. according to your choice. …

Member Avatar for fadia
0
169
Member Avatar for AralX

I was planning on taking a program regarding haskell, but I don't know if its the good thing.. I mean... some said its like out of style ... I am still searching and trying to know if I need it ... or if I need to learn more about functional …

Member Avatar for kudresov
0
132
Member Avatar for crh0872

Hello again DaniWeb! I'm designing a dynamic website in PHP, and it's structured so that each page creates the necessary objects (based on what content is being viewed) which get the right information to display. Smarty then organizes this content and makes it look good. The problem is, I have …

Member Avatar for diafol
0
125
Member Avatar for jeffjnsb

a C++ newbie here.. I am doing the question at the end of Ch3 which is about classes, objects, and constructors. I'm stuck on a few that asks you to write a C++ statement for each: (On 5, I wasn't sure how to give a value in the same statement.. …

Member Avatar for mrnutty
0
180
Member Avatar for Acegikmo

[B]This has been solved! Look at the end of this post.[/B] Hello! I'm having some trouble here with polymorphism, as I need to access methods in a subclass from an array of superclass objects. This method is called parseCommand(Command c); The method exists in the superclass and is overridden in …

Member Avatar for masijade
0
276
Member Avatar for stevelg

Hello A belated introduction to all. I am from Liverpool, England and work between a surveyors office on CAD and a web design company writing Java based cloud applications. I joined Daniweb to help augment my skills in Java. I have written a number of programs previously but have only …

0
34
Member Avatar for bas_brain

Someone can explain to me why and when we need to reference variables and function. example: function &load_class() { } or $class = &new Class(); I also noticed that some php code vars sometimes appears like this: $_var instead of $var; there is any reason for that.

Member Avatar for harshbavaliya
0
99
Member Avatar for iamai

Hi there i am new at OOP and i want learn about it. I start with the book how to think like a computer scientist but at the ending chapters i get lost .... Can some one advice me a good book that covers OOP ?with good examples,diagrams e.t.c.

Member Avatar for vegaseat
0
114
Member Avatar for Fbody

I just started an advanced C++ course and my instructor sent around a file with this piece of code: [code]class smallobj // specify a class { public: smallobj() : iData(0){} // Constructor smallobj(int iInValue) : iData(iInValue) {} // Overloaded Constructor ~smallobj() {} // Destructor void setdata(int d) // member function …

Member Avatar for Fbody
0
1K
Member Avatar for mir_sheely

Enviorment is TC. using grapphics.h . I am developing the board game LUDO as project in C++ Using OOP methodology. Right now I am drawing the Board. Now I want to draw various cells, of 30 pixels X 30 pixels at various places on the screen. I am drawing a …

Member Avatar for SHAHEER BANO
0
815
Member Avatar for veledrom

Hi guys, I am new in OOP. I know the rules and use of abstract classes but, I just want to know why we should use abctract or what is the purpose of it, rather than using normal classes while we can accomplish same thing in both ways? If i …

Member Avatar for ShawnCplus
0
114
Member Avatar for JAbeer

[code]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class cal extends JFrame implements ActionListener { JMenuBar mb; JMenu file, help; JMenuItem esc, about; JButton btn[]; JLabel lab1 = new JLabel("0"); JPanel pan1; int i; final int MAX_INPUT_LENGTH = 20; final int INPUT_MODE = 0; final int RESULT_MODE = 1; final int …

Member Avatar for gunjannigam
0
77
Member Avatar for MyRedz

hello guys...i just done my assignment and here's the code [code] #include <iostream> using namespace std; class CelestialBody { private: double size; public: CelestialBody (double ); ; class Planet : public CelestialBody { private: double orbit_time; public: Planet(double , double); }; Class Earth : public Planet { private: unsigned long …

Member Avatar for JugglerDrummer
0
154
Member Avatar for lowhzplayinfool

So this is a homework question, but i've been doing endless reading and am really clouded over!! I have to use an Object Oriented approach to gain the higher marks for this but I can't work out whether i'm going about this all wrong. Is it possible to have just …

Member Avatar for lowhzplayinfool
2
313
Member Avatar for hao90

I am learning the OOP recently and i have a few questions to ask 1) When should i use operator overloading? 2) When should i use template?

Member Avatar for jbennet
0
106
Member Avatar for veledrom

Hi, I have two classes. I user [inlinecode]throw new Exception("Error");[/inlinecode] in first class. I want to catch that error message in second class with "try catch". How do i do it? Thanks

Member Avatar for veledrom
0
146
Member Avatar for cwarn23

Recently I have installed php 5.3 on a pc and just like many posts on this forum have been saying the latest version of php does not guarantee 100% backwards compatibility. Especially for some oop parameters where the symbol "&" needs to be used before the variable at specific points …

Member Avatar for Atli
2
156
Member Avatar for winecoding

How many constructor (including copy constructor) and destructors will be called for test1 and test2? [CODE]#include <iostream> using namespace std; class Base{ public: Base(){cout << "Base()" << endl;} Base(const Base&){cout << "Base(const Base&)" << endl;} ~Base(){cout << "~Base()" << endl;} }; Base func(Base b){return b;} void test(){ Base a; func(a); …

Member Avatar for Lawand
0
85
Member Avatar for Stefano Mtangoo

I see alot of libraries written in C and I like C++ OOP way. How can I use a given C library functions in C++?

Member Avatar for Stefano Mtangoo
0
176
Member Avatar for absk

I have been coding in C++ for a few years now and am comfortable with OOP concepts and Data Structures. Now I wish to pursue a higher level language which will hwlp me in application development. After much reading, I arrived at C# and Java. Which one should I pursue? …

Member Avatar for peter_budo
0
160
Member Avatar for fallopiano

Hi everyone. I'm currently working on a project with c#, and had some questions about classes. I'm a python programmer, so bear with me ;) How would I make a class that has pre defined arguments? I.e. even if the user doesn't pass that arguement, the default value of it …

Member Avatar for sknake
1
146
Member Avatar for 9w43

Hello, I am using Blue J, I have 3 classes, time, date and patient. When I run the patient class, I can put patient details like name, address, DoB, time. The time and date classes are separate classes, how can I store the date (int) and time which I enter …

Member Avatar for mellowmike
0
175
Member Avatar for lifeworks

hi Ive realised that I have some way to go before I can call myself an accomplished php developer. I want to transfer my skill set into legit object orientated design, and also to learn best practice for designing php apps for the web... to the extent that I need …

Member Avatar for phpbeginners
0
146
Member Avatar for JGClifton

Hi guys, Firstly, thanks for the great community, have been lurking for a while and have picked up a lot of help from existing threads. I am making a small program which takes some inputs as strings, i then need to display a list of these inputs, be able to …

Member Avatar for rs25
0
202
Member Avatar for jwxie

Hi, my professor is asking a project. Overview: Get x number of students for a simple survey. Make a data analysis, including [1] name [2] gender [3] ID [4] Question 1 and data analysis - probability - % - distribution In this project, each student is an "object" I am …

Member Avatar for jwxie
0
111
Member Avatar for sam023

this is my code [code=php] $query="call call_history('','$real_sdate','$real_edate','$level','$userid',@_count,'0','10')"; //Listing the result $rs = mysqli_query($mysqli,$query); $rs = mysqli_query($mysqli,"SELECT @_count"); while($row = mysqli_fetch_assoc($rs)) { print_r $row; }[/code] always i get blank result or error mysqli_fetch_assoc() expects parameter 1 to be mysqli_result i want to do it with procedural mysqli.. not with oop mysqli..!! …

Member Avatar for nileshgr
0
252
Member Avatar for veledrom

Hi, I want to learn ZEND Framework. I have checked the courses and they are very expensize. My question is, if I buy a book for ZEND, do you think i could learn it. I know PHP5 and OOP. I am open for other recomendations. Thanks

Member Avatar for GL.Za
0
66
Member Avatar for intelnf09

I am taking an IT course and need help desperately. I have referred to several different resources and am having a hard time grasping OOP. I came across this site and thought I should give it a try. Please bear with me I am new to the site. I am …

Member Avatar for intelnf09
0
129
Member Avatar for lewashby

Does anyone know where I can find some sort of UML (unified modeling language) tool for python? I think it might help me understand OOP a little better, but I don't really know, I just read about UML and that's all I know. Thanks.

Member Avatar for ShadyTyrant
0
90
Member Avatar for Phil++

Which introduced OOP in their operating systems first? For example, I'm working on an assignment and writing about OOP and I'm going to say something like: "Microsoft, introduced OOP on their operating system first unlike Apple. This meant that the programming of the software became much cheaper to programme because …

Member Avatar for diafol
0
204
Member Avatar for ceileyg

Hey all - yes, this is another thread asking for some homework help, but I've got a solid start, just looking for some fresh ideas. Anyways, the task is to create a java clock class and access/use it from a driver. I saw something similar on here, but not quite …

Member Avatar for masijade
0
5K
Member Avatar for siamfocus
Member Avatar for cwarn23
0
28
Member Avatar for rukshilag

I would like to know a list of systems (standalone) that can be made using JAVA. For example payroll system, billing system etc. Please state some simple systems that requires basics of OOP and few swing codes. Thank YOU :)

Member Avatar for peter_budo
0
103
Member Avatar for kapcom01

Sorry to bother again:) but im new to Python and to OOP. I made a simple sniffer application (thanks to your help) which prints the sniffed data on the console. I want to extend it giving it a GUI using PyQt4. I also made an argument "--nogui" that the user …

Member Avatar for kapcom01
0
2K
Member Avatar for richman0829

I come to this space after a long journey. Back in 1978, when I was driving down Hawthorne Blvd in Redondo Beach (California), I saw a sign that said "Byte Shop", and made a fast u-turn, thinking, "You mean I can buy my own computer?!!". Fifteen minutes and $1200 bucks …

1
47
Member Avatar for gibson.nathan

im relatively new to trying to program in oop. i have been slowly working through this entire program learning as i go. i have gotten this class to compile. [CODE] /** * Write a description of class CO2Footprint here. * * @author (your name) * @version (a version number or …

Member Avatar for AndreiDMS
0
106
Member Avatar for ninreznorgirl2

I've worked with making classes, but I've never had to use a class in code that I write, so I'm having a hard time. [CODE]#include <iostream> #include <string.h> #include <iomanip> #include <ctype.h> #include "String2.cpp" using namespace std; const int MAX_WORD_LENGTH = 254; // The type definition below permits much easier …

Member Avatar for u8sand
0
209
Member Avatar for Stefano Mtangoo

Hi all, after thinking for sometimes, I thought it will be grat opportunity to learn if I will start from scratch and build my own register/login system. Here is the thread that I will be posting the progress and I hope you guys will help me. The code below is …

Member Avatar for Stefano Mtangoo
0
445
Member Avatar for Duki

Hey guys, I'm about to start on a research project about multi-threading. I'm very comfortable with c++ oop/data structures concepts, but am completely new to programming with multiple threads. Does anyone have suggested resources for me to get started?

Member Avatar for Cronless
0
123
Member Avatar for Stefano Mtangoo

Hi all, this is just curious question on C++ and winapi. I have heard that win32api is written in C and at the same time I have heard people saying that "light weight" applications can be written using API. This boggles my mind on how C++ works with C-based API. …

Member Avatar for Ancient Dragon
0
274
Member Avatar for abrocketman

I am writing this simple code. I used this class in PHP 10 minutes ago and now when I did it again it gives me this error. I cannot see the difference [CODE] <?php class user { public $Username; public $FullName; public $Password; public $LoggedIn; public $JoinDate; public function changePassword($newPass) …

Member Avatar for ShawnCplus
0
104
Member Avatar for sartori

Not sure this is the best place to post this: I'm an experienced C++ oop developer wanting to develop my own semi-complex website ( e.g. with very nice GUI and graphics in general). I've used Qt for C++ GUIs I'm a newbie to web development, and after researching languages, it …

Member Avatar for network18
0
78
Member Avatar for gibson.nathan

i am trying to make a program that takes an object oriented approach to calculating the miles per gallon that your car gets. this is early in the process an i am aware that alot of stuff is missing. i am just trying to get it to work enough that …

Member Avatar for BestJewSinceJC
0
218
Member Avatar for StaticX

HI, Today im tying to build a game program,im not really stuck on the coding aspect but its the concept of the 2 players in the game that is confusing me. For a starters, the game has 2 players.Player one goes first,after their go its player twos turn and so …

Member Avatar for StaticX
0
82
Member Avatar for gokhanxyz

[CODE]template <class T> class Node{ private: T data; Node<T> *ptr; public: void set_data(T parametre){ data = parametre; } void set_ptr(Node<T> *ptr){ this->ptr = ptr; } Node<T> * get_ptr(void){ return ptr; } T get_data(void){ return data; } }; template <class Type> class Stack{ private: Node<Type> *head; public: Stack(void){ head = 0; …

0
49

The End.