|
| ||||||||||
| Tags: arrays, object oriented, oop, pointers |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Arrays in C++
|
|
#2
| |||
| |||
| Re: Arrays in C++
Array is a assortment of comparable facts elements. To form more than one objects of a particular class the concept of array is used. The array of objects is created in very similar behavior as we are creating the array of any data types. Array of objects is formed at the end of class or in the main. |
|
#3
| ||||
| ||||
| Re: Arrays in C++
This can be exampled with help of example. For example class Box { private : int l, h, w; public : void get_data() { cout<<”enter the length width and height of box”; cin>>l>>h>>w; }void display() { cout<<”the length of box is<<l; cout<<”the height of box is<<h; cout<<”the width of box is<<w; } }; main () { Box b1[3]; //array of objects } |
|
#4
| |||
| |||
| Re: Arrays in C++
Arrays in C++ also support object oriented programming. It supports in C, C++, and C #programming language. C++ is typically object oriented programming language. It supports mostly all the function of C++ which is very good. It is one the important feature of C++. |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Arrays in C++" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Arrays in C# | kavisg1 | Software Development | 3 | 07-10-2010 07:55 PM |
| Challenge with Arrays 3d 4d | daniel_at_work | Software Development | 1 | 20-08-2010 10:31 AM |
| How to use an Arrays in PHP? | Jacques25 | Software Development | 4 | 25-02-2010 12:24 AM |
| Arrays in C# | DotNetUser | Guides & Tutorials | 2 | 03-12-2008 04:31 PM |
| Problem with arrays in C++ | fellah | Software Development | 3 | 05-09-2008 04:45 PM |