C/c
Expert: Zlatko - 6/19/2010
QuestionSir, I am beginner of c language. what is meant by object-oriented language.
AnswerHello Bhanu
Object orientation is a way to organize your program. In object orientation, a program is subdivided into sections called objects. Each object has its own data and its own functions and, most importantly, its own definite responsibilities. The program is seen as a co-operative group of objects. This is different from a procedural program where a program is seen as a top level function calling lower level functions to do a task.
It is not really possible to explain in a short answer. The best thing you can do is read books about the subject. You can get an excellent free book called Thinking in C++ at
http://www.mindviewinc.com/Books/
The C programming language is not object oriented. The C++ language is. An object oriented language is one that has the idea of classes. Classes are the instructions for making an object. With C++, you are not forced to use classes and objects, so some people say it is only an object **based** language, but that detail is not important to you. If you are a beginner, I suggest you start with learning only C. Everything you learn about C can be used in C++.
There is no shortcut for learning anything difficult. You must invest the time to study and practice and be patient. The book I mentioned explains things well. There is no need for me to repeat it. Once you start reading, if there is something you don't understand, then feel free to ask.
Best regards
Zlatko