Objected Oriented Introduction - Chapter - 1
Objected Oriented Introduction - Chapter - 1
• Data Abstraction
• Encapsulation and Information Hiding
• Inheritance
Characteristics of Object-Oriented Programming
Data Abstraction
• It is the process of extracting the most relevant characteristics of
object data.
• These characteristics should be uniformly possessed by all the
objects of the class.
• E.g. Car
Characteristics of Object-Oriented Programming
Data Abstraction
Characteristics of Object-Oriented Programming
Encapsulation and Information Hiding
• It is a mechanism of wrapping the data and methods into a single
unit called class.
• The data of a class may be hidden so that it cannot be accessed by
the outside code.
• Classes have the provision to hide the data or methods from the
user.
• A class member may be declared as public, protected or private.
• A member declared as private cannot be accessed by any code outside the
class.
• Only class members can access a private member.
Characteristics of Object-Oriented Programming
Encapsulation and Information Hiding
• The one declared protected can be accessed by the class members as
well as members of the subclass derived from the class.
• A member declared public can be accessed by any outside code.
Characteristics of Object-Oriented Programming
Encapsulation and Information Hiding
Characteristics of Object-Oriented Programming
Encapsulation and Information Hiding
• A class may be declared public or without defining any access
modifier.