Sign up now
to enroll in courses, follow best educators, interact with the community and track your progress.
Download
Objects Oriented Programming Part 15: Computer Science & Applications (in Hindi)
111 plays

More
This lesson describes the important concepts of object oriented programming.

Sandeep
Co-founder of BSI Academy and running YouTube channel. 5 years of teaching experience. Qualified in UGC NET & CSIR in Computer Science as JR

U
Unacademy user
  1. NTA UGC NET Paper -2


  2. Computer Science & Application


  3. About Me Sandeep M.Tech (IT) from IIIT CSIR (Engineering Science) as JRF UGC NET (JRF) - Computer Science & Applications Worked as Software Engineer & Research Scientist


  4. Object - Oriented Programming


  5. Part 15


  6. unacademy Follow me on the Unacademy Learning App 127.1k Sandeep Singh Educator since May 201 Co-founder of BSI Academy. 5 years of teaching Qualified in UGC NET in Computer Science and its Get updates about new courses Watch all my lessons Application as JRF& lecturer 14.7k 0 34 Follow . Download slides and watch offline All courses Q Sandeep Singh HINDI Programming in C&C (Hindi) Concepts of Objects Oriented Programming: CBSE UGC NET 0(6 ratings Sandeep Singh


  7. Polymorphism .In C++ polymorphism is mainly divided into two types: 1. Compile time Polymorphism 2. Runtime Polymorphism


  8. Compile Time Polymorphism 1. Function Overloading 2. Operator Overloading


  9. Runtime Polymorphism Function overriding


  10. Polymorphism Compile time Polymorphism Run time Polymorphism Function Overloading Operator Overloading Virtual Function


  11. Function Overloading . Selected by seeing the number and type of the arguments but not the function type


  12. Rules for using Default Arguments 1. Only the last argument must be given default value. sum (int x, int y):; sum (int x, int y-0); sum (int x-0,int y); // This is Incorrect


  13. Example 2 #include <iostream> using namespace std; class Add ( public: int sum(int num1, int num2) return num1+num2; Output: Output: 30 Output: 66 int sum(int num1, int num2, int num3) return numl+num2+num3; int main() 1 Add obj.; //This will call the first function cout<<"output: "<<obj. sum(10, 20)<endl; //This will call the second function cout<<"Output: "<<obj. sum (11, 22, 33); return e;


  14. Thank You