0% found this document useful (0 votes)
25 views

Object Oriented Programming

Encapsulation hides the internal details of objects and protects their data through private variables and public access methods. Inheritance allows code reuse through building upon existing classes. Polymorphism enables similar objects to take different forms. Object-oriented programming uses cooperating objects that exchange data and messages to achieve goals, with objects encapsulating data and allowing it to be used, modified, and shared with other objects.

Uploaded by

Muhammad Ovais
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Object Oriented Programming

Encapsulation hides the internal details of objects and protects their data through private variables and public access methods. Inheritance allows code reuse through building upon existing classes. Polymorphism enables similar objects to take different forms. Object-oriented programming uses cooperating objects that exchange data and messages to achieve goals, with objects encapsulating data and allowing it to be used, modified, and shared with other objects.

Uploaded by

Muhammad Ovais
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Basic Definitions

1) Encapsulation
Hiding the Details Of The Internal Implementation. Hide the details about how our objects work from other object user. Stat data ( instance variables ) should be declared private. Totally Private! Keep Out! You Have A Bank Account but u cant go into the vault. Use properties to protect class state data. Also Access data via public methods

2) Inheritance
Code Reuse and Building Block Strategies.

3) Polymorphism
Similar Objects ( Many Forms )

Object Oriented Programming


OOP allows groups of Objects to cooperate with each other by exchanging data, messages and logical framework to achieve a common simple or complex goal .

Objects
Object are software constructs that encapsulate data and allow the ability to use modify and share this data with other objects.

You might also like