Sponsored Links


Results 1 to 2 of 2

Thread: What does constructor do in class?Why we use copy constructor in class. Is it necessa

  1. #1
    Senior Member saneha's Avatar
    Join Date
    Apr 2011
    Posts
    266

    Linkedin Icon What does constructor do in class?Why we use copy constructor in class. Is it necessa

    Sponsored Links1



  2. #2
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578

    Icon51 What does constructor do in class?Why we use copy constructor in class. Is it necess

    Constructor is a method which runs just once on the creation of an object for a class and mostly is used for initializations.
    Copy constructor helps in making two different objects with same state.
    Java is also a Multithreaded programming language. Multithreading means a single program having different threads executing independently at the same time. Multiple threads execute instructions according to the program code in a process or a program. Multithreading works the similar way as multiple processes run on one computer.
    Java has the strong memory allocation and automatic garbage collection mechanism. It provides the powerful exception handling and type checking mechanism as compare to other programming languages. Compiler checks the program whether there any error and interpreter checks any run time error and makes the system secure from crash. All of the above features makes the java language robust.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. What is the syntax of copy constructor in c 2011
    By saneha in forum C++ Programing
    Replies: 1
    Last Post: 05-02-2011, 05:36 PM
  2. Replies: 1
    Last Post: 05-02-2011, 06:45 AM
  3. Replies: 1
    Last Post: 04-29-2011, 08:19 AM
  4. Replies: 1
    Last Post: 04-29-2011, 08:08 AM
  5. what is constructor in c ++
    By saneha in forum C++ Programing
    Replies: 1
    Last Post: 04-29-2011, 07:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft