Ask a Teacher



what is a class

A class is a prototype for an object in an object-oriented language. An object of a given class is known as an instance. The class definition can include both attributes (or member variables or properties) and methods, which give the object its state and behavior.


comments powered by Disqus