Rabu, 05 Oktober 2016

What are anonyomous objects in C++

Anonymous Objects   An object which has no name is known as an anonymous object. Syntax for creating an anonymous object is as follows:   ClassName(params-list);   An anonymous object can be created and used in any statement without using any name. It is automatically destroyed after the control moves on to the next statement. Following program demonstrates an anonymous object: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 #include <iostream> using namespace std; class Student { private: string name; string regdno; int

The post What are anonyomous objects in C++ appeared first on Coding Security.


What are anonyomous objects in C++
read more

Tidak ada komentar:

Posting Komentar