[Show all top banners]

garbagegigo
Replies to this thread:

More by garbagegigo
What people are reading
Subscribers
:: Subscribe
Back to: Computer/IT Refresh page to view new replies
 Willing to do C/C++ programming homework

[Please view other pages to see the rest of the postings. Total posts: 27]
PAGE: <<  1 2  
[VIEWED 17422 TIMES]
SAVE! for ease of future access.
The postings in this thread span 2 pages, View Last 20 replies.
Posted on 10-17-09 9:05 AM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Hi guys,

I am really strapped for cash right now so I am willing to do anyone's programming homework. The languages I cover are C/C++ and Java. I would need some cash of course.

Thanks,
GarbageGigo

 
Posted on 01-22-10 3:28 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

My first home work is :
1) What is Copy Constructors? Explain with example

I will pay you from paypal after i get the solution back.

Thanks in advance!!

Regards,
wai_wai

 
Posted on 01-22-10 4:08 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

lol constructor bhanya , that creates new obect hola,
copy constructor bhanya , that copies the content to new object aswell hola


You owe me 5 bucks !!
src: http://www.learncpp.com/cpp-tutorial/911-the-copy-constructor-and-overloading-the-assignment-operator/

Last edited: 22-Jan-10 04:08 PM

 
Posted on 01-22-10 4:38 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

egg jam ple chai..
java ma dim hoi..c++ teti aunna..Object Oriented ko concept nai bujhne ta honi..hoina?
set ra get method chai afai bujha hoi..alchi lago ke...
public class Saman
  {

     String samanName;
      int samanQty;
     
      /**regular constructor**/   
      public Saman(String sName, String sQty)
       {
           samanName = sName;
           samanQty = sQty;
        }
      
     /** copy constructor **/
     public Saman(Saman s)      /** copy constructor always takes Class Object as parameter
    {
        this.samanName = s.getSamanName();
        this.samanQty = s.getSamanQty();
       /** Alternate methods
         * Call regular constructor
         * return(Saman (s.getSamanName(),s.getSamanQty());
      }

       public void testCopyConstruct()
     {
         Saman chauChau1 = new Saman("waiwai",10);  //calling regular constructor
         Saman chauChau2 = new(chauChau1); //this will copy all the attributes of chauchau1       
                                                                     //to                      chauchau 2
         chauChau2.setSamanName("rara"); //aba rara ni 10 wotai raicha bhane..kina feri 10 bhanera
                                                                //initialize garnu bhanera...tyo copy use garya hoi

   }
}

aba yo program milyo milena chai thaha chaina hera....but concept chai testai ho..
aba bujhena bhane..gimme 5 more bucks..feri bujhaidimla..

 
Posted on 01-22-10 4:45 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

wow...thanks!!i never heard it on C#....C++ ra Java ma mattra ho?
 
Posted on 01-22-10 4:56 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

khoi c# ta thaha chaina..but i think you should be able to  implement copy constructor the same way.

 
Posted on 01-22-10 9:07 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

wai_wai,

you are correct! There is no copy constrcutor in C#. If you want  to copy the values from the object, then you have to define your own method.. Let me know if you need an example to clarify this concept.

Bange,
your code looks perfect except that you didn't define accessor and mutator method!

 
Posted on 01-24-10 10:28 AM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Hi Guys,

never knew this thread would see so much activity. I don't have time to go through all the replies so if anyone wants any homework done, please send me an email directly at my email address: garbagegigo@gmail.com.

Thanks,

 



PAGE: <<  1 2  
Please Log in! to be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 7 days
Recommended Popular Threads Controvertial Threads
TPS Re-registration case still pending ..
To Sajha admin
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters