9.17.2008

In DS & A - Classes

It is based on our lecture in Data Stucture and Algorithm that...

A class is an expanded concept of a data structure: instead of holding only data, it can hold both data and functions.

An object is an instantiation of a class. In terms of variables, a class would be the type, and an object would be the variable.

Classes are generally declared using the keyword class, with the following format:

class class_name {
access_specifier_1:
member1;
access_specifier_2:
member2;
...
} object_names;


0 comments:

Recent Comments

On Sep 18 RJ commented on kamusta: “Belated Happy Birthday, Rejie! o",)Cool! Nagbabasa ng blog mo ang iyong ama?!”

On Jun 21 michael commented on adamson suspends class due to ah1n1: “kuya bat sabi sa thursday na daw pasok?”

On Jun 20 michael commented on adamson suspends class due to ah1n1: “nako ako rin di ko alam kung ano gagawin ko. hahaha”

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites