Classes

42
1740 reads

February 25, 2013

Counting_class_objects


This project demonstrates creating of objects of a class and also counts the total number of objects created.
27
1663 reads

February 25, 2013

Trying_object_sizes


This project demonstrates the bytes used by a single object of a class and the total bytes used by an array of objects of same class.
55
1756 reads

February 25, 2013

Creating_an_array_of_objects


This example explains the concept of declaring an array of objects of a class "Box"!
27
1647 reads

February 25, 2013

Using_a_friend_function_of_a_class


This project helps us understand the concept and syntax of declaring a friend function of a class.
25
1843 reads

February 25, 2013

Creating_a_copy_of_an_object


This example demonstrates how to create a copy of an object of a class.
23
1655 reads

February 25, 2013

class_with_private_data_members


This projects demonstrates the concept of access specifiers and particularly how to declare private members inside a class.
59
1815 reads

February 25, 2013

default_class_constructor


This project helps us understand the concept of default constructor and how to define them inside a class.
30
1721 reads

February 25, 2013

class_constructor_using_namespace


This example helps us understand the concept of constructors and their need in a class. Here we have defined the constructor in the user created namespace.
53
1852 reads

February 25, 2013

Using a class constructor


This example demonstrates the use of class constructors.

25
2287 reads

February 25, 2013

Using a Box class


This example demonstrates the use of a Box class.