AllExperts > Object Oriented Programming 
Search      
Object Oriented Programming
Volunteer
Answers to thousands of questions
 Home · More Object Oriented Programming Questions · Question Library  · Free Encyclopedia ·
More Object Oriented Programming Answers
Question Library

Ask a question about Object Oriented Programming
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
About Marty Landman
(Top Expert on this page)

Expertise
Available for questions involving packaging, writing and using methods, and generally most object oriented techniques. Conversion from modular (routine based) to OOP (object based) is a pet interest of mine. My language experience in this area is (in order of competence) Perl C++ PHP Visual Basic/ASP Java

Experience
Programmer since 1980, web developer since 1998.

Education/Credentials
M.S. in Computer Science from New York University

   

You are here:  Experts > Computing/Technology > Perl/PHP > Object Oriented Programming

Questions Answered By Expert  Marty Landman 
In Category  Object Oriented Programming

SubjectDate Asked

Inheritance7/1/2009
  Q: What is inheritance in detail with one fair example.
  A: Pavan, Inheritance is a way to provide reusability automatically and in a common sense way. For ...
C++ Programming6/3/2009
  Q: How can I create multiple C++ files (.cpp) in one project using Microsoft Visual C++? Is there an ...
  A: Angela, You open your project and then go to files > new and select the files tab. There is no ...
C++ Literals6/1/2009
  Q: I'm confused about literals. From its definition, it seems like every value in C++ are literals, so ...
  A: Angela, A literal is data where a keyword is an instruction. Escape sequences would be literals, ...
processor run through machine code?2/26/2009
  Q: sir iam a computer science student.i got in my subject(principles of programing language)that ...
  A: Venkatesh, AFAIK this is done very much as in Windows. The C or C++ source code gets compiled into ...
Confused Beginner1/9/2009
  Q: I'm a beginner and want to start on learning designing webpages. I'm currently learning Think in ...
  A: Angela, If your goal is to write webpages suggest starting out learning HTML. There are many online ...
ASP Update7/11/2008
  Q: I can't get the update statement to work, can u please help thanks. <% sSQL = "SELECT * FROM Detail ...
  A: Phares, Please print out sSQL before the execute, and also the results of the execute statement, ...
c++4/25/2008
  Q: I am trying to make a program that lets a user input 3 sentences. Then the program displays those ...
  A: Ken, Look over the material at http://littlelink.webtrouble.com/?6CI5 and write back if you have ...
fibonacci's sequence4/18/2008
  Q: Good morning I v been trying to find the nth term of the fibonacci sequence. i have tried many ...
  A: Berthe, I fixed some of your errors and came up with this // fibonacci.cpp : Defines the entry ...
Screen saver customer text4/17/2008
  Q: Marty. Why can I only put no more than 20 words on my computer screen saver to see? Is it possible ...
  A: Sterling, I hit the same limitation of 20 characters on my XP computer. Don't know any way to ...
difference between structured approuch and objected oriented approuch4/10/2008
  Q: what is the difference between structured approach and objected oriented approach
  A: Siseko, Please have a look at the Wikipedia article on ...
C++ Pi2/8/2008
  Q: I would like to see an example of a program that computes the value of Pi to the number of digits ...
  A: Chris, There's some code at http://littlelink.webtrouble.com/?4eAh. Let me know if that helps. -- ...
word processor programming2/5/2008
  Q: how are you? What are some functions of a word processor in C/C++ programming?in other word how can ...
  A: Sarah, See if the links on this page are of help http://littlelink.webtrouble.com/?QqT4 -- Marty ...
C++ language1/25/2008
  Q: plz send me the example of c++ in which we can add the data in files and then read it and can also ...
  A: Kifayat, Here are links to a couple of good explanations. Please try them out and write back with ...
taking input8/2/2007
  Q: plz tell me how can i take input from a user in the form of "a/b". and seperating two entities in ...
  A: Depends on the language you're using. For example Perl and PHP both have split functions which will ...
php7/30/2007
  Q: what is the difference between php4 and php5
  A: They are different releases of the same software product. There are some details available on the ...
appending excel files in perl7/27/2007
  Q: Marty I have opened the directory using the code I have written below but I am not able to append ...
  A: Perl has a package designed to read and write Excel files - ...
perl7/23/2007
  Q: I have a directory in which I have 10 to 15 excel files . have to read each file and then append the ...
  A: This code should do what you need: opendir DIR,$path_to_directory or die "open directory ...
OOP7/15/2007
  Q: Sir, where can i get best website about oop using C++? because its our subject.. i need some example ...
  A: There are so many good resources on the web. Start with these: ...
what are differences between oop and c7/7/2007
  Q: I'm a C programmer and DBA, and I'm trying to understand concept of oop, but I have difficulty. ...
  A: Inheritance has to do with class properties. Here's an example I read once that made sense to me. ...
php6/5/2007
  Q: ..can u help me to find what are the best site or tutorial site for php?and can u tell me something ...
  A: There are lots of tutorial sites for PHP. PHP is a hypertext processing language intended mostly for ...
C++3/19/2007
  Q: Sir, We have been assigned to do a mini project on C++. I am confused about what topic to choose. ...
  A: I suggest using Google to start looking up sample C++ code and after looking these over decide what ...
New Learner - Programming3/14/2007
  Q: I have always wanted to know more about computer science. I know more than your average person ...
  A: Yes. You're thinking about it intelligently in my opinion. Any scripting language is a good way to ...
Generating Sinusoidal waves through C Programming3/13/2007
  Q: I want to generate sinusoidal waves in c programming.Can you please provide me the snippet of the ...
  A: Sorry this is a little out of my area. Suggest first decide on how you are going to represent the ...
php script2/20/2007
  Q: I'm currently trying to run a very basic script, however the coding seems very untidy. Can you ...
  A: Ruby, I can't see the screenshot - could you explain what the problem is with the program? -- ...
*embarrrased* hello world problems2/18/2007
  Q: Hey, I can't believe I'm asking this, but oh well. When I wrote my "Hello World" C++ program, ...
  A: Carson, My answer may seem silly too but before I can answer your question would like to know - ...
Extensions2/8/2007
  Q: I have searched the site looking for the correct person to ask this question. I am aware you may not ...
  A: David, According to http://filext.com/detaillist.php?extdetail=rar&Search=Search an rar file must ...
about language2/2/2007
  Q: basically I want to know how the keywords in different language works? because I want to create a ...
  A: Sangeet, Could you please explain more specifically what you'd like to do? For example if you would ...
algorithm-dynamic allocation10/21/2006
  Q: Tomasulo's algorithm for dynamic allocation
  A: Stephen, I'm unfamiliar with this myself, looks like a multi-processing optimization algorithm but ...
File Reading10/17/2006
  Q: If the file is to be read line by line and comprises of both text and integers how to access the ...
  A: Harsha, Here is some code to read a file in Perl line by line: my $file = ...
Comments needed for Code10/15/2006
  Q: I am a 1st year student at university and was wondering if you can be of any help. One of my ...
  A: Jaggu, Start by dividing the program into two parts - describe in a comment what each part does. ...
OOPs10/7/2006
  Q: List and explain the main differences between C and C++. Also substantiate the statement “C++ is not ...
  A: Shwetha, This is an interesting question and one that some research will help provide a full and ...
Working with subroutines and functions10/4/2006
  Q: How can i build a new Console Application that implements the Analog Clock problem. For Example, ...
  A: Alex, First thing I'd do is develop the clock arithmetic methods. For that you'll be using the mod ...
how to write a Console Application program that determines the position of the hour and minute hands of an analog clock at a moment in time.10/1/2006
  Q: im sorry if this is the second time sending u this message, im not sure if i sent u the message, ...
  A: Alex, First thing I'd do is develop the clock arithmetic methods. For that you'll be using the mod ...
Classes And Members9/22/2006
  Q: So, this is what I am trying to do. I am making a fighting game and what I want is to have a class ...
  A: So when fighter[0] scores against fighter[1] you want the hitenemy method to register this, and that ...
Classes And Members9/21/2006
  Q: Here is the problem. MyClass has one member and one method. I have two instances of MyClass. I want ...
  A: Martynas, I don't think there is a good way to do this automatically. Perhaps if you could explain ...
java code9/14/2006
  Q: sir, I am in need of java code for the project "customer service". I want only a model of the code ...
  A: Sharmi, Look on sourceforge.net and also sun.com which is the author of Java and has many helpful ...
Software Development Package for Windows XP, utilizing C++9/10/2006
  Q: I have a straightforward question about development in C++. I have done programming in the past and ...
  A: Jim, My experience in OOP is mostly in Perl - I am beginner like you at C++ for Windows. I ...
Java & OPP's8/16/2006
  Q: how many types of inheritance? does java support all types of inheritance?Explain in deepth...
  A: Kalps, There is much information available on the web for you to research this topic. Please do ...
Programming for employer and copyrights8/14/2006
  Q: Since a couple of years, I do programming for my employer. I wrote several software and software ...
  A: George, This is really a question for a lawyer. It may be that if you have a case then a lawyer ...
Bank Account - help needed8/10/2006
  Q: I am stuck with my this bank account programming. The question is like this: Create a base class ...
  A: Chris, I am happy to try and help you figure out logic, provide code snippets and debugging ideas ...
generic linklist in c7/26/2006
  Q: how to implement a generic linklist in c? if you are able to implement it then how you are able to ...
  A: Saswati, Try the example code on this page: ...
Copy Constructor in derived class7/25/2006
  Q: Well I am learning c++ and have finished a very advanced book on it that is somewhat shy on ...
  A: Akvino, Look over this webpage for an example of polymorphism: ...
about Java abstraction7/3/2006
  Q: Actually I want to know about Java abstraction as I'am studying about it.So, please can u send it ...
  A: Ashwini, Abstraction is a concept used in OOP - object oriented programming. Since Java is an ...
computers6/23/2006
  Q: what is the language of a computer called when it uses 100010011000
  A: That's looks like binary (base two) code to me. If it was hexadecimal (base 16) then I'd say it was ...
about c problem solving6/20/2006
  Q: I'm a beginner in c++ programming and I'm still not very sure on how functions work. And there's ...
  A: Christina, Do some googling for sample C++ programs - maybe we can start with the first assignment. ...
Illegal division by zero in Perl!5/26/2006
  Q: Sorry that didn't work properly. After the input that was suggested (print @a, "\n";), I get this ...
  A: Ijared, Not sure. Could you possibly put the source code on a webpage and write back with the link ...
Illegal division by zero in Perl!5/16/2006
  Q: I am a beginer and trying to learn. I am using activeperl 5.6. I am writing a program but from the ...
  A: Ijared, Maybe on this line: print @a/n; I think you may have intended to say instead: print @a, ...
inheritance in java5/6/2006
  Q: types of inheritance
  A: Shalini, Read all about it here: http://tinyurl.com/phyxv Let me know if you have any more ...
algorithm4/15/2006
  Q: i have been given a project to design an algorithm which can sort numbers from 0 to 9 & its time ...
  A: Rohit, The first O(n) sorting algorithm I learned back in grad school was the heap sort and that's ...
Safe C++3/22/2006
  Q: What kind of problems are in developing safe C++ programs?
  A: Shannon, Could you be more specific about what you mean by 'safe'? Microsoft has an article at ...
Simpletron3/19/2006
  Q: I'm currently trying to do the Deitel & Deitel C++ simpletron program and am having no luck. Would ...
  A: I'm unfamiliar with this book; maybe the material at these web sites will be helpful: ...
help finding programming practice problems3/10/2006
  Q: I am looking for a source for programming practice problems, either through an online source ...
  A: Wei, Just type learn java tutorials examples into google, you'll find lots of stuff. ...
File event handling in php by file sizes2/9/2006
  Q: I have a file named subcontent.php . It's current file size approx 3000 bytes. How do I make it so ...
  A: John, Have you tried putting logic into your script which queries the shell to find the current ...
inheritance and superclass instance2/6/2006
  Q: With the following snippet, how many objects of type A are created? I know for sure there is one in ...
  A: Iz, The easiest way to find the answer is for you to put a print stmt like sprint or AfxMessageBox ...
object-design flow charts2/6/2006
  Q: I have a flow chart and pseudocode that i think is correct but i need to check it heres the prob: ...
  A: Thomas, If you'd be willing to write back with what you've got so far would be happy to help figure ...
Sorting a Linked List2/3/2006
  Q: I have to sort an already inputed linked list, using C++, by creating a function and implimenting an ...
  A: Joe, For starters here are some tutorials to give you an overview and some ideas to break the ice. ...
Windows API function?2/3/2006
  Q: This is not exactly a C# question, but I thinking you might be able to point me in the right ...
  A: Andrew, Although this is not my expertise there may be some helpful information on this web page ...
Password Checker...1/31/2006
  Q: I need some help in writing a secure username/password checker. I need to create a file which ...
  A: Juanna, First suggest you do the encyption last. It's easy once everything else works but is also a ...
Interactive File Deletion! Please Help!1/22/2006
  Q: I have an urgent question regarding a school assignment I've got due in a couple of days. I am ...
  A: Juanna, Try starting with this article http://www.metalshell.com/view/source/116/ It will help ...
RSS FEEDS1/16/2006
  Q: I want to display cnns RSS news headlines on my site. I have looked on their site and it doesn't ...
  A: Dan, I haven't personally done this myself except to write a custom script for a client using ...
PHP OOP Aproach to a project1/8/2006
  Q: I am currently in the development phase of a large project that is building an auction website, and ...
  A: Sami, Learning a new way of programming has pros and cons. PHP4 does support object oriented ...
RSS Feeds1/8/2006
  Q: I am on a linux server, i have php, mysql, perl, and cgi, and i think i have SSI. Also i can't find ...
  A: This tutorial is on CNN's website so it might be really helpful since you want to use their feed: ...
RSS Feeds1/8/2006
  Q: How do i show RSS feeds on my site, so i can show cnns' headlines on my site? And is there anyway i ...
  A: Dan, Creating dynamic content on your website can be done in a variety of ways. The easiest if you ...
RSS Feeds and taking some text1/6/2006
  Q: I was wandering, you know on the google homepage where they take an RSS title but then they have ...
  A: Dan, You can parse apart the XML contained within the RSS feed, then using a web page template ...
compiling decompiling1/4/2006
  Q: I actually have two questions. One being that I need to decompile various .bin files, of unknown ...
  A: Dom, Do a google search for disassemblers decompilers and see what you come up with, this is ...
perl script12/20/2005
  Q: .. should have said the host is unix and they are the most unhelpful bunch of people I've ever ...
  A: Robin, If you look at this page of my site http://face2interface.com/Products/FormalHost.shtml ...
perl script12/20/2005
  Q: Macosx forms to go I've created a perl script to use with a form on a site... success page is ...
  A: Robin, Formmail is one of my specialties. In fact I've got one of my own offered from my website ...
Object Oriented COncepts [JAVA]12/18/2005
  Q: Can you give me a brief discription on the following or link to some good site. (Which is used in ...
  A: Anthony, This is outside my expertise. However if you google on each of these terms there are many ...
remote database access12/18/2005
  Q: Im trying to build a program that will allow a user to search my database, im using php/mysql for ...
  A: Shaz, Your program will have to access your database while running and the visitor will need to ...
Cisco and network12/12/2005
  Q: Please tell me which one is about software and which one is about hardware ?
  A: Mohammad, Cisco is a manafacturing company which makes networking equipment including routers. ...
data structure c/c++12/8/2005
  Q: how to reverse a linked list?
  A: Jai, Please look over these explanations of the method: ...
A novice programmer asking for advice12/5/2005
  Q: Well I am not having a problem with software or anything just was wondering if you could give me ...
  A: Joseph, First please bear in mind that the advice I give is only what I think, and based on my ...
VC++12/5/2005
  Q: I want to learn mfc programming can u suggest me some good books to begin with
  A: Gourav, There are lots of web resources and these are what I use mostly. Here are a few of my ...
Making a window fix-positioned and fix-sized ...11/28/2005
  Q: I have written a program which has two forms (2 windows) A and B. The second form (i.e. B) is ...
  A: Mohammad, Can you please write back with the URL? It's quite possible that you won't be able to ...
VB.net Support OO or not?11/27/2005
  Q: 1) may i to know Visual Basic .net able support Object Oriented concept or not? It is because i plan ...
  A: Edmund, Yes VB .net is object oriented. In fact there is a Microsoft knowledgebase article about ...
Normal Curve Equivalents11/4/2005
  Q: What is Normal Curve Equivalents? Thought you might know.. Thanks in advance. Kate
  A: I think you're asking about something in statistics. I'm not an expert on this subject although I ...
about database10/18/2005
  Q: what are the different database program or software.
  A: Weinright, The most popular free one is Mysql, also PostGRESql is free and so is Msql. Popular ones ...
Preventing user from showing Task Manager10/17/2005
  Q: I want to write a program which when runs, prevents the user from launching the windows Task Manager ...
  A: Mohammad, According to the article on this webpage http://tinyurl.com/6r9aq it can be done with a ...
development environments10/9/2005
  Q: I am not an IT professional, but have some amateur experience (ie visual basic). I would like to ...
  A: Steve, That's a tough one. My thought would be that you choose which language is your preferred ...
Flowcharting10/3/2005
  Q: I am having problems writing, not with the symbolsRead ten numbers. For each number calculate its ...
  A: Latoya, In that case I recommend you start by writing pseudocode. Then translate that into a ...
C++9/21/2005
  Q: can you give me a URL that will teach me C++ top to bottom? i know my question is a little dumb ...
  A: Casey, The Code Project - http://www.codeproject.com/ is a decent place to start. There are also ...
how to keep format for all monitors9/20/2005
  Q: We have designed a website through Dreamweaver MX 2004. One of our pages is a four column document. ...
  A: Nancy, When I look at http://www.chronologicalbible.org/Chron_4_gospels/Chrono-1/Part%20A.htm I ...
how to keep format for all monitors9/20/2005
  Q: We have designed a website through Dreamweaver MX 2004. One of our pages is a four column document. ...
  A: Vipo, Sounds like one or more compatibility issues being encountered. May I have a look at the ...
c++.net9/18/2005
  Q: I've got a problem with loading my first C++ program, I always recive this error ‘ fatal error ...
  A: Hyder, You should add the line #include <stdafx.h> before the include for iostream. That ought to ...
computer science8/27/2005
  Q: I would be grateful if you answer my goustions: 1- how we can the computer make more speed ? 2- give ...
  A: Ali, I think the most important computing speed increases are going to come from parallel ...
res protocol8/11/2005
  Q: Having difficulty placing a background on a list control. The code works OK on CFormview projects ...
  A: Ray, Unfortunately I am a C++ newbie. Did find a tutorial to do exactly what you're asking for, I ...
How I can get the computer id8/10/2005
  Q: plese can you twell me the code that can get computer id or motherboard id in c++ or vb.net
  A: Lutfi, On second thought I found this bit of code online. Haven't tried it myself - hopefully it ...
C++ programming concepts8/6/2005
  Q: I am trying to learn c++ by myself and i dont have anybody aroung me to ask for help. I can't ...
  A: Stefan, In object oriented programming every object has a constructor method and a destructor ...
basic ftp api calls7/29/2005
  Q: Marty, My company wants me to develop a basic FTP tool using Borland C++ to allow our software ...
  A: Joe, The RFC for FTP is here http://www.w3.org/Protocols/rfc959/ and that will tell you how the ...
binary file handling7/12/2005
  Q: i am in a big problem,i am a junior software programmer can u please help me. ...
  A: Shan, If you know the format of the data within the binary file, then code to capture it as ...
Full address of a user's Desktop6/26/2005
  Q: I want to know how I can have the FULL adress of a user's "Desktop"; for example , for a user named ...
  A: Mohammad, I don't think that you can, directly. The only thing that might be helpful is if you have ...

All Questions in This Category

Email this page
     
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2006 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.