English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

3 answers

OOPs is rather a philosophy. In this world every thing as made up of Objects. Every object has property and Methods.

Bank account is an Object So as Car. If you take the example of Bank Account It has name of the Account holder Balance account number etc.

What is inheritance?

Bank account can be Loan or CD or saving account etc. But all are accounts. So you can inherit them from the account class. Once you inherit you can add your own attributes such as property or method.

Class is template of an Object. A class can have it own data and method. You define the function in the class.

Read the Book written by Brady Booch. It is part of every library.

2006-12-03 14:45:20 · answer #1 · answered by raju 5 · 0 0

The basic concepts of oops are:
1.data encapsulation
2.polymorphysim
3.data hiding
4.inheritance

object :: It is a variable of a class. which can use only public memebers of a class. it can't use the private members of a class.

class :: it is used to implement encapsulation.i.e., binding both data(variable data) and functions into a single unit.

NOTE : I am sorry, i don't know about "methode" if u know that please send me.

2006-12-02 17:38:36 · answer #2 · answered by rose 1 · 0 0

one class inherits from another class.
have an interface.

2006-12-02 11:38:16 · answer #3 · answered by scott p 3 · 0 0

fedest.com, questions and answers