WizIQ helps you learn and teach online - any subject you can think of!
Join for FREE

OOPS concepts

Add to Favourites
Post to:

Description
it is a short overview of OOPS concept with the help of examples

Comments
Presentation Transcript Presentation Transcript

TOPIC : OOPS CONCEPT : TOPIC : OOPS CONCEPT Presented by: Miss Monika

AGENDA : AGENDA A short view to understand OOPS concepts.

What is OOPs ? : What is OOPs ? Features Class & Objects Abstraction Encapsulation Inheritance Polymorphism Dynamic Binding “OOPs is an Object Oriented Programming Approach”.

Procedural Vs. Object-Oriented : Procedural Vs. Object-Oriented Procedural Withdraw, deposit, transfer Object Oriented Customer, money, account

Objects and Classes : Objects and Classes object class girl boy An Object is an identifiable entity with some characteristics . Class is a collection of Objects of similar type.

Slide 6 : Think of a class as the same as a data type Think of an object as the same as a variable Syntax: class data_type_name { public: //operations go here private: //memory is reserved here };

Abstraction : Abstraction refers to the act of representing essential features without including the background details. Data abstraction is used as a tool to increase the modularity of a program It is used to build walls between a program and its data structures Abstraction

Encapsulation : Encapsulation The wrapping of data and functions into a single unit is called encapsulation. Example: Class sum { Int a; Public: void getdata() { Cout<<“Enter any value”; Cin>>a; } }; Void main() { Sum s; s.getdata(); }

Inheritance : Inheritance Derive a new class (subclass) from an existing class (base class or superclass). TYPES MULTIPLE HIERARCHICAL MULTI LEVEL SINGLE HYBRID

Slide 10 :

Polymorphism : Capable of assuming various forms Poly, referring to many, signifies the many uses of these operators and functions. Polymorphism POLYMORPHISM Compile Time Run Time Function Overloading Operator Overloading Virtual Functions

Dynamic Binding : Dynamic Binding Dynamic Binding means that the code associated with the given function call is not known until the time of call at runtime. Binding refers to the act of associating an object or a class with its member . Virtual Function A virtual function is a member function of a class, whose functionality can be over-ridden in its derived classes. It is one that is declared as virtual in the base class using the virtual keyword.

ADVANTAGES OF OOPS : ADVANTAGES OF OOPS Reduced Maintenance Real-World Modeling Improved Reliability and Flexibility High Code Reusability

DISADVANTAGES OF OOPS : DISADVANTAGES OF OOPS OOP is a high level concepts so takes more time to execute as many routines run behind at the time of execution. Offers less number of functions as compared to low level programming which interacts directly with hardware. Increased burden on part of OOP developer.

Slide 15 : THANK YOU

Want to learn?

Sign up and browse through relevant courses.

Name:
Your Email:
Password:
Country:
Contact no.:


Area code Number
Subject you are interested in:
Word verification: (Enter the text as in image)


Sign Up Already a member? Sign In
I agree to WizIQ's User Agreement & Privacy Policy

Your Facebook Friends on WizIQ