Object Oriented Concept
Object Oriented Concept
CONCEPT
PRESENTED BY Amit Basan
Object Oriented Concept
■ Class
■ Object
■ Inheritance
■ Polymorphism
■ Encapsulation
■ Data Abstraction
■ Message Passing
Classes vs Objects
■ If we don’t define a constructor then compiler creates a default constructor for class.
■ The default constructor automatically initializes all instance variables to their default
values, which are zero, null, and false, for numeric types, reference types, and Boolean,
respectively.
■ Also known as no-argument constructor or zero-argument constructor.
Parameterized Constructor
■ the process of combining the data and functions into a single framework
called class.
■ preventing the modification of data from outside the class by properly
assigning the access privilege to the data inside the class.
■ the term data hiding is possible
Polymorphism