129 Topics

Member Avatar for
Member Avatar for diafol

Hi all, been dipping my toe into OOP and am getting on OK, but I'm hitting a bit of a wall with a current project. classes: db (a PDO extended class) User Timetable The db is just a few shorthand ways of running PDO The User is just for handling …

Member Avatar for diafol
0
211
Member Avatar for Stefano Mtangoo

Since I decided to reinvert the wheel and write a growing MVC, I though having a template class will be cool. Now I have never done any complex templating apart from simple include kind of templating. Now I wrote this base class and here is my concept is explained below. …

Member Avatar for Stefano Mtangoo
0
302
Member Avatar for TrustyTony

Here unsystematic play with linked list structure Object Oriented style. If you have performance critical code, please do not use this but use the superb faster than list [URL="http://pypi.python.org/pypi/blist/"]blist module[/URL] (including sorted versions of main data structures). As OO newbie (though with some 30 years of other programming), I wanted …

0
208
Member Avatar for diafol

Hi all, Trying to get my head around OOP at long last. Finally got to the beggar on my to-do list. Just a quick question: I was looking for a way to persist the object across pages, but on further research, I got the idea that this is a bad …

Member Avatar for Stefano Mtangoo
0
139
Member Avatar for suraj_p

this program calculates all the prime numbers between two input numbers num1 and num2. first an array is created and num1,num1+1,......num2 are stored in that array and then all elenemts of array are scanned and if they are divisible by any odd number except itself or by 2 then 0 …

Member Avatar for vijayan121
0
167
Member Avatar for t2r

I'm searching for a good tutorial about object oriented analysis and design but can't find any short and clear tutorial which will has: 1. Explanation of oo concepts (very short) 2. CODE EXAMPLE (eg. if someone describe aggregation I wanna see how I can use this in my class) There …

Member Avatar for t2r
0
179
Member Avatar for bondo

Hey everyone. I've been contemplating something lately and I haven't been able to come to a conclusion, so I thought I'd see what you all thought about it. When checking for null (nevermind that we should try to not make something null in the first place), would it be better …

Member Avatar for Narue
0
191
Member Avatar for emily-bcot

I'm new to PHP OOP. The project need a site class and the below is my code (): [CODE]class Sites { private $siteName; private $location; private $postcode; function __construct($name, $loc, $pc) { $this->siteName = $name; $this->location= $loc; $this->postcode = $pc; //use "insert SQL" to store new added site info to …

Member Avatar for ddymacek
0
134
Member Avatar for JoshuaBurleson

I'm trying to understand utilizing classes and their methods. I made a simple program to exit or print 'Will continue' given a word. however I keep getting a TypeError for self and through reading my books and searching online I'm still not quite sure why. the code is: [CODE]class OffSwitch(object): …

Member Avatar for Enalicho
0
240
Member Avatar for mike_2000_17

[B]Beginner's guide to C++0x: Avoiding Memory Problems by Design of Ownership[/B] If you ever read any resources on C++ programming or object-oriented programming, you must have heard some rethorics like "inheritance is for the [I]is a[/I] relation, composition is for the [I]has a[/I] relation". Is that all? Is that the …

Member Avatar for sergent
8
2K
Member Avatar for Stefano Mtangoo

have planned to write my own light weight MVC for PHP, that will be used as base for my sites I develop. I have no problem with PHP, OOP, et al. I have trouble on how to actually load Models In controllers and use them amd loading Controller values into …

Member Avatar for Stefano Mtangoo
0
391
Member Avatar for misterious

[CODE]#include<iostream.h> #include<conio.h> class student{ //student class // student class attributes // Access specifier is by default private int ID; char * name; public:// public acccess specifier // student class functions/ operations void login(); bool Select(); void read(); }; // end of student class // ******************************************************************** // ******************************************************************** // ******************************************************************** class …

Member Avatar for raptr_dflo
-4
135
Member Avatar for baby_c

Hey friends ..I need a help.. I want to know that to learn oop concept is RUBY language good...? we have to choose between RUBY and OCAML. Please can anyone explain a bit..Thanks in advance

Member Avatar for jwenting
0
99
Member Avatar for jatpatel1

Hi there, Please can someone help me! I have recently been learning oop PHP. I have created a class for my database, which basically makes my life easier when doing queries. I have created a "where" method which basically when used will append to the select statement. For example: //class …

Member Avatar for diafol
0
198
Member Avatar for wombomatt

I am currently working on a banking system that has 3 classes. customer, savingsAccount and transaction. I have created the 3 classes but am having problems with the saveAcnt object in the customer class. I need to link it with the savingsAccount class. Any help would be appreciated. Also I …

Member Avatar for dkalita
0
254
Member Avatar for PdotWang

This is an answer to a question in C++ area. [url]http://www.daniweb.com/software-development/cpp/threads/355232[/url] It should be ready to be modified to code in C++, C#, or Java, because VB.Net is fully OOP. Even though it can be used for vectors, you may still want to modify it to a Vector Class.

Member Avatar for spixy
0
710
Member Avatar for k1robert

I haven't done any sort of development for a while, but what i'm looking for is to see a simple example of an ntier application using linq. Showing BLL, DAL with roles and membership. I'm also keen on getting better with my OOP and would like to find a site …

Member Avatar for k1robert
0
202
Member Avatar for AmerJamil

im totally new in object oriented progrmng in C++ course, i have to create a table in which i have to answer in yes /no that for example if class can be public so the answer is Y and if class can not be public then answer will be N. …

Member Avatar for AmerJamil
0
94
Member Avatar for saad749

I have recently started learning Object oriented programming and design. I had made a small program using the procedural design to move a block after selecting it in XNA. I then tried to make the same program with an Object centered Design, but I am not able to make it …

Member Avatar for saad749
0
138
Member Avatar for kangkan_14

Can anyone please explain what is 'public' and 'private' in oop and specifically in java? I am a bit confused.

Member Avatar for kangkan_14
0
273
Member Avatar for Awah Mohamed

hello people i am new to oop , well , i am good in the normal php but i started oop today and now i am getting too many errors . check the class_lib.php bellow , it has my classes and mainly the database connectors .: [CODE] <?php class db …

Member Avatar for P0lT10n
0
166
Member Avatar for DAlexNagy

This is a request for some 'best practices' comments from experienced OOP practitioners. I have been in IT from the days of punched cards and have had considerable experience with legacy languages like 370 ASM, SAS, and REXX. For fun, I've taken a college class in C++ and am now …

Member Avatar for DAlexNagy
0
165
Member Avatar for gpjacks

Im into the last stages of my C++ class and am having trouble with a project that has been assigned. Here is the problem and thanks in advance for whoever helps out! Declare an object of type bucket 1). Use the SetGallonSize() method to set the bucket size to 5.0 …

Member Avatar for Fbody
0
123
Member Avatar for mike_2000_17

Hey y'all, I was just curious about which idiom you prefer or use very often.. and why? Please vote on the poll! I understand that there are a lot of choices but you can vote for multiples, but try to pick only the ones you think are the best, or …

Member Avatar for mrnutty
0
209
Member Avatar for jawadsatti

plz mention me the errors i dont understand what i do.. [CODE]#include<fstream> #include<iostream> #include<string> #include<ctype.h> #define _TABSIZE 4 using namespace std; int tabsize = _TABSIZE; class token { public: token() : _what(code) {} public: enum type {code, comment, pp, keyword}; string _str; type _what; friend istream& operator>>(istream&, token&); friend ostream& …

Member Avatar for Nick Evan
0
136
Member Avatar for mbhanley

Hi * I have spent the last 18 hrs or so trying to get the wright sql code or think of an alternative but I just can't get my head around it. If any one can help me it would be awsome. What I am trying to acheive is getting …

Member Avatar for hielo
0
214
Member Avatar for SunnySideUp

Hi, I have a question regarding Object Orientated Programming as it is baffling me. Lets say I have a form called register. It is made up of Username, Password and Emai. Now when the user clicks submit the form will be handled by the class register but how does the …

Member Avatar for Setvir
0
120
Member Avatar for junjua

I need some help to theme my website a test project to learn cakephp 1.3.4. I have created files for these like default.ctp for website default layout. and home.ctp for home page layout, I try Google for help but there I found nothing a good tutorial for a beginner to …

Member Avatar for pritaeas
0
131
Member Avatar for gozlemci

Hi there; I hope I post this message in true place.My question is about modules in oop. In Code complete, author Mr Steve McConnell mentioned "module" in page 89. [QUOTE] Semantic coupling The most insidious kind of coupling occurs when one module makes use not of some syntactic element of …

Member Avatar for gozlemci
0
2K
Member Avatar for zeuz

Hi everyone My intention is to enable NTLM authentification when using the native PHP SOAP client, Most of the code is copied from an php.net manual example and it is said to be working. I'm trying to override the __doRequest function in the SoapClient class and let it use cURL. …

0
136

The End.