Object oriented programming - The beginning
After giving a thought over object oriented programming, I found that it has lot of usability. It cracks down a problem into a great solution where I could have total control on various issues such as scalability, reliability, robustness, ease of maintenance.
Looks like I am going gaga over object oriented programming. Let me start talking some reall stuff.
Let me throw a statement that you might have come across at some point of your life.
Jane is a student of school, St. Thomas.
There are two proper nouns in above statement. They are Jane and St. Thomas. And, there are two common nouns, student and school. Common noun is use to refer to person,place or thing in a general sense.
Going by proper nouns and common nouns, we could say, the following:
Jane is of type Student, or Jane belongs to the category Student, or, Jane belongs to class Student.
St. Thomas is of type School, or St. Thomas belongs to category School, or, St. Thomas belongs to class School.
Am I making that the statement "Jane is a student of school, St. Thomas." depicts two classes? They are Student and School. Am I saying that Jane is an object of type Student, AND, St. Thomas is an object of type School.
To summarize:
Jane is a student of school, St. Thomas gives following:
Class: School, Student
Is there any relationship between School and Student?
Looks like I am going gaga over object oriented programming. Let me start talking some reall stuff.
Let me throw a statement that you might have come across at some point of your life.
Jane is a student of school, St. Thomas.
There are two proper nouns in above statement. They are Jane and St. Thomas. And, there are two common nouns, student and school. Common noun is use to refer to person,place or thing in a general sense.
Going by proper nouns and common nouns, we could say, the following:
Jane is of type Student, or Jane belongs to the category Student, or, Jane belongs to class Student.
St. Thomas is of type School, or St. Thomas belongs to category School, or, St. Thomas belongs to class School.
Am I making that the statement "Jane is a student of school, St. Thomas." depicts two classes? They are Student and School. Am I saying that Jane is an object of type Student, AND, St. Thomas is an object of type School.
To summarize:
Jane is a student of school, St. Thomas gives following:
Class: School, Student
Is there any relationship between School and Student?


0 Comments:
Post a Comment
<< Home