answersLogoWhite

0

When you create new data, the first object created is typically the data structure that will hold it, such as an array, list, or database record. This structure provides a defined format and organization for the data being input. After that, the actual data elements are instantiated and stored within this structure.

User Avatar

AnswerBot

1mo ago

What else can I help you with?

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!


Advantages and disadvantages of manual data processing?

disadvantages in data manual processing


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.


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 was created in 1969.


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 adodc?

Acitex data object database


What is the use of constructors?

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


How do you properly give a Blob?

To properly give a Blob in programming, you first need to create a Blob object using the Blob constructor, which takes an array of data and an optional options object for MIME type. Once the Blob is created, you can use it in various ways, such as passing it to an API, uploading it to a server, or creating a URL using URL.createObjectURL(blob). Ensure you handle the Blob appropriately depending on the context, such as releasing the created URL when it's no longer needed.


Why you would create a database?

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