answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: When you create a new data which object created first?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Can we create an array of objects for a class having default constructor Justify your answer?

See example code below. #include <iostream> class x { private: // Members. static int counter; int data; public: // Default constructor and destructor. x():data(++counter){printf("Object %d created!\n",data);} ~x(){printf("Object %d destroyed!\n",data);} // other members omitted for brevity... }; // Initialise static counter. int x::counter=0; int main() { // Instantiate an array of 10 objects. x arr[10]; // .. do some work with the array .. return( 0 ); // The array falls from scope, destroying the objects. } Example output: Object 1 created! Object 2 created! Object 3 created! Object 4 created! Object 5 created! Object 6 created! Object 7 created! Object 8 created! Object 9 created! Object 10 created! Object 10 destroyed! Object 9 destroyed! Object 8 destroyed! Object 7 destroyed! Object 6 destroyed! Object 5 destroyed! Object 4 destroyed! Object 3 destroyed! Object 2 destroyed! Object 1 destroyed!


How can you create array of an object in java?

Array's can hold only primitive data types. if you want a collection of objects you must use an ArrayList or a Vector.


Advantages and disadvantages of manual data processing?

disadvantages in data manual processing


Example of multilevel inheritance program in java having HAS-A relation?

Just create a class that has two fields of object type. For example, to store data about a person, you might store a name (String object) and a birth date (Date or Calendar object).


What is true about true about abstract data type Object of an abstract class type cant be created. We can derive classes from these abstract classes Object of an abstract class t?

True - an instance of an abstract class cannot be created. False - derive (subclass) from a class, not the object (the instance).

Related questions

When was Object Data Management Group created?

Object Data Management Group was created in 1991.


When was First Data created?

First Data Corporation was created in 1971.


Can we create an array of objects for a class having default constructor Justify your answer?

See example code below. #include <iostream> class x { private: // Members. static int counter; int data; public: // Default constructor and destructor. x():data(++counter){printf("Object %d created!\n",data);} ~x(){printf("Object %d destroyed!\n",data);} // other members omitted for brevity... }; // Initialise static counter. int x::counter=0; int main() { // Instantiate an array of 10 objects. x arr[10]; // .. do some work with the array .. return( 0 ); // The array falls from scope, destroying the objects. } Example output: Object 1 created! Object 2 created! Object 3 created! Object 4 created! Object 5 created! Object 6 created! Object 7 created! Object 8 created! Object 9 created! Object 10 created! Object 10 destroyed! Object 9 destroyed! Object 8 destroyed! Object 7 destroyed! Object 6 destroyed! Object 5 destroyed! Object 4 destroyed! Object 3 destroyed! Object 2 destroyed! Object 1 destroyed!


Create a Dynamic Data Website?

form_title=Create a Dynamic Data Website form_header=Create a data-driven website with help from the experts! Who will you be targeting with the website?=_ When does the website need to be completed?=_ Do you have any other websites created with dynamic data?= () Yes () No () Not Sure


Short note on inheritance?

Inheritance is used object oriented program. When you create a class, you can create a child class that inherits methods and data from the parent class.


Do the memory will be created for both private and public data members if the object is created for a class in c plus plus?

Yes.


Assignment object oriented data and process simple task?

write a class implementation for a class_my class that contains the data member ID of type integer and data member MSG of type string (to hold a simple description of any created object (local,global,static,automatic))then follow what come serially 1-create a global void function named create_fun to create 2 objects:obj1 local automatic to create_fun,and obj2 static to create_fun. 2-constructor with 2 arguments to initialize object data member ID and MSG with any given value. 3-a destructor to print the ID and MSG of any terminated object. 4-a global object named obj3. 5-a local object to the main function named obj4. 6-a static local object to the main function named obj5. 7-call function create_fun from the main function. 8-create a local object named obj6 to the main function. 9-call function create_fun from the main function. 10-create a local object named obj7 to the main function.


What are the reasons for creating a data mart?

Data marts are created for various reasons. They're easy to access, easy to create, create collective views for groups, is not cluttered, and cost less to implement than a data warehouse.


What is the use of constructors?

Constructors are used in object-oriented programming languages to create usable instances of abstract data types (classes).


Why you would create a database?

Database is created to keep a systematic record of data of a particular field.


What is adodc?

Acitex data object database


What is OOP language?

Before Object oriented programming the term which was used was “Structural Programming” where a programmer has to use the predefined data types, they cannot define their own data type. But when the term object oriented programming start in programming programmer become able to define its own data type according to their own use. Here a coder can define its own data types called classes and then create object from these classes. Coding in Object Oriented language Advantages of Object Oriented Programming One of the main advantages of OOP over procedural programming techniques is that they enable programmers to create modules that do not need to be changed when a new type of object is added. A programmer simply can create a new object that inherits from existing objects many of its features . This makes object-oriented programs easier for programmer to modify.