BIT153Semester II10 units84 solved questions987 study cardsFull study modes
The free sample is open to everyone. Sign in for 2 free weeks of every answer, flashcards and progress.
Object-oriented programming (OOP) builds a program from objects that hold data and the functions that work on that data. It helps us write large programs that are easier to reuse, change and maintain. This subject uses C++.
Object-oriented programming is a style of programming where the program is organised as a set of objects. Each object combines data (its properties) with functions (its behaviour). Objects talk to each other by calling functions.
The main concepts of OOP are:
In procedural programming (like C) the program is a list of procedures or functions. Data is usually global and shared. In OOP, data and functions are kept together inside objects.
| Procedural programming | Object-oriented programming |
|---|---|
| Focus is on functions (procedures) | Focus is on data (objects) |
| Uses top-down approach | Uses bottom-up approach |
| Data is global and can be changed by any function | Data is hidden inside objects and protected |
| No real data hiding | Data hiding through access specifiers |
| Adding new data is hard | New objects and data are easy to add |
| Little code reuse | Code reuse through inheritance |
| Examples: C, Pascal | Examples: C++, Java |
Object Oriented Programming for TU BIT is covered here in full, from syllabus notes to solved past questions. This subject has 10 chapters mapped to the official syllabus, and 84 past exam questions with written model answers. The opening of every note and answer is free, and the most-searched questions are free in full. A free account gets 2 free weeks of the whole program plus flashcards and progress tracking so weak topics come back before the exam.
This TU BIT Object Oriented Programming guide covers Object-Oriented Programming Fundamentals, Classes, Objects, and Data Members, Constructors and Destructors, Pointers, References, and Memory Management, Function Features and Inline Functions, Inheritance and Polymorphism, Operator Overloading and Type Conversion, Static and Dynamic Polymorphism, and more, across 10 chapters. It includes model answers to 84 past exam questions, plus flashcards for quick revision.
Object Oriented Programming has 10 chapters mapped to the official syllabus.
Yes. Each of the 84 past questions comes with a written model answer; the most-searched ones are free in full, the rest open with a free account's 2 free weeks or a pass.
Free to start. The opening of every note and answer is free, the most-searched questions are free in full, and a free account gets 2 free weeks of the whole program plus flashcards and progress tracking. After that a program pass keeps everything open.
Based on the official syllabus.