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

This lesson describes the important concepts of object oriented programming.

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

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 - 13

  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. Inline Function The compiler places a copy of the code of that function at each point where the function is called at compile time.

  8. Syntax inline function name() //function body

  9. Example #include< iostream.h> #include<conio.h> inline void show) cout<<"Hello world"; void main() show(); // Call it like a normal function getch();

  10. Not Working of Inline function If inline function are recursive. If function contain static variables. .If return statement are exits but not return any value.

  11. Call by Reference #include< iostream.h> #include<conio.h> void swap(int *a, int *b) int temp; temp-*a; *b-temp; void main() int a-100, b-200; clrscr(); swap(&a, &b); // passing value to function cout<<"Value of a"<<a; cout<<"Value of b"<<b; getch()

  12. Syntax class class Name Returntype method Returntype method (datatypel variable1) Returntype method (datatype1 variable1, datatype2 variable2) 1;

  13. Example 2 #include< iostream.h> #include< conio.h> class Addition public: void sum(int a, int b) cout<<a+b; void sum(float a, float b) cout<<a+b+c; void main) clrscr; Addition obj. obj.sum(1e, 20 cout<<endl; obj.sum (1e, 20, 30)

  14. Thank You