Showing posts with label object. Show all posts
Showing posts with label object. Show all posts

Sunday, June 14, 2015

Creating Class, Method, and Objects

This simple program creates a class (virtual_pet), object (pet1), method (talk).

Monday, October 13, 2014

Constructors

A constructor is a function that initializes immediately as soon as the objects is created. See example below.