4
Fig: Relationship of data and functions in POP
Basic Concepts of Object-Oriented programming:
1.) Object:
It represents the entities of the real world. For e.g. Bank, Person, Company etc. They
have attributes and function. For e.g. Attributes like color, address, name etc. The function like
working, speaking, public relation. In OOP, the problem is always analyzed in terms of object
communication through function i.e. the functions are used when some message needs to be
passed and worked out accordingly
Dostları ilə paylaş: