answersLogoWhite

0


Best Answer

A constructor in a class is one of the first pieces of code to be executed when you instantiate a class. The purpose of constructors is to have code that initialize the class and prepare the variables that may be required by the class...

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

constructor is main terminology in abstract class and methods while asighing the constructure that we can maket sure no need of object in the parent class in interface and give object in implemention.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

The purpose of constructor in object oriented programming is to initialize data.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the purpose of constructor in object oriented programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is copy constructor in object oriented programming?

The purpose of constructor in object oriented programming is to initialize data. Likewise copy constructors are used to initialize an object with data from another object.


What is the role of the constructor?

Several meanings for "constructor". In object-oriented programming, it is the subroutine used to create an object. The programmer can add commands here, to get the object ready for his needs; for example, initialize the variables used in the object.


What are the reasons for rise of constructor concept in c?

Not sure what you mean by this. C is a not an object-oriented programming (OOP) language, and therefore has no constructor concept. You probably meant C++ but, even so, there is no "rise of constructor concept". Constructors are fundamental to OOP -- they allow you to initialise an object at the point of instantiation.


What is full form of oop's?

Object Oriented Programming


Is PHP object oriented?

Yes - 'advanced' PHP programming uses Object Oriented Programming (OOP).


What is an essential of Object Oriented Programming?

The 3 essential concepts of Object Oriented Programming are:InheritanceEncapsulation &Polymorphism


What is the distinct difference between object oriented concept and object oriented programming?

Object oriented concepts are a generalisation of the object oriented principals (encapsulation, inheritance, polymorphism and abstraction) without specifying a particular implementation of those principals. Object oriented programming is the application of those principals through an object oriented programming language.


Is c is complete object oriented programming language?

No. C is not object oriented. C++ is object oriented.


Full form of oops?

The full form of OOP is Object-Oriented Programming.


What actually mean by object oriented programming Is C plus plus is a object oriented programming?

Just eat a watermellon!


What are the most prominent features of C plus plus?

Object oriented programming. General purpose. Cross-platform.


What has the author Edmund W Faison written?

Edmund W. Faison has written: 'Borland C [plus plus] 4 object-oriented programming' 'Borland C++ 3 object-oriented programming' -- subject(s): Borland C++, C++ (Computer program language), Object-oriented programming (Computer science) 'BorlandC[plus plus] 4.5 object-oriented programming' -- subject(s): Borland C., C., Object-oriented programming (Computer science) 'Borland C++ 3.1 object-oriented programming' -- subject(s): Borland C++, C++ (Computer program language), Object-oriented programming (Computer science)