Courses/Computer Science and Engineering

Object Oriented Programming

CS231 · SVNIT Computer Science and Engineering

C++ objects from the ground up: classes, constructors, inheritance, polymorphism, templates and files, with CS231's papers solved and every program run.

Read it on Tu ChahiyeFree with your SVNIT college email

What's inside

  • Full course: 16 chapters
  • Revision sheets: 22 sheets for the night before
  • Solved past papers
  • Quiz with leaderboard

The chapters

  1. 01Ground floor: what C++ actually isHow to use this book · Where C++ came from · C and C++ standards · Your first C++ program · cout, cin and cascading · namespace std and header conventions · …
  2. 02Two ways to think about a programProcedure oriented programming · Object oriented programming · The six core ideas · Benefits and applications
  3. 03Tokens, types and variablesTokens and keywords · Identifiers and constants · Basic data types · User-defined types: struct, union, enum, class · Derived types: arrays, functions, pointers, references · Storage classes · …
  4. 04The operators C++ addsOperators new in C++ · The scope resolution operator :: · Memory management: new and delete · Manipulators · The type cast operator · Expressions and control structures
  5. 05FunctionsFunctions, the basics · main() and function prototyping · The four shapes of a function · Call by value, address and reference · Inline functions · Default arguments · …
  6. 06Classes and objectsDeclaring a class · Member functions · Arrays inside a class · Memory allocation for objects · static data members and member functions · Objects as arguments and return values
  7. 07Friends and pointers to membersFriend functions · const member functions · Pointers to members
  8. 08The life of an objectConstructors · The copy constructor · Destructors · Operator overloading · Member function or friend function? · String manipulation using operators
  9. 09Inheritance: extending classesWhat inheritance is, and why it exists · Writing a derived class · The protected keyword · The three modes of inheritance · Single and multilevel inheritance · Multiple inheritance · …
  10. 10Pointers, virtual functions and polymorphismPointers: the basics · Pointers, arrays and strings · Function and object pointers · The this pointer · Polymorphism and pointers · Virtual functions · …
  11. 11Managing console input and outputStreams and the stream classes · Unformatted input and output · Formatting with the ios functions · Manipulators · The part on one page
  12. 12Working with filesWhy files, and the file stream classes · Opening and closing a file · File modes · File pointers and sequential I/O · Working with files on one page
  13. 13Templates: function templates and class templatesWhat templates are, and why · Function templates · Class templates · Overloading templates, and good practice · Templates on one page
  14. 14Exception handlingErrors, exceptions and why we handle them · try, throw and catch · Catching many kinds of exceptions · Exceptions vs if-else, and standard exceptions · Exception handling on one page
  15. 15The Standard Template Library (STL)What the STL is · Vector, the dynamic array · List and deque · Iterators · Associative containers: set and multiset · Map and multimap: key-value pairs · …
  16. 16RevisionOne-page cheat sheet · Mistakes people make · Test yourself

Previous year papers

Mid-sem 2026 · End-sem 2025 · Mid-sem 2025 · End-sem 2024 · Mid-sem 2024

The original papers, as they were set. All SVNIT previous year papers

Tu Chahiye is a student project, not an official SVNIT service. Course codes and names are used only to say which subject a page is about. All courses · Exam preparation