1. Define a class in C++ to represent a student with attributes like name, roll number, and marks. Write a program to create and display the details of 3 students using objects.
  2. Explain the difference between a class and an object in C++. Provide a simple example to demonstrate how an object is created from a class.
  3. What is the role of the constructor in a class? Write a C++ program to show how a constructor is used to initialize the data members of an object.
  4. How can member functions be defined outside the class in C++? Illustrate with an example using a BankAccount class that has deposit and withdraw functions.
  5. Write a C++ program to create a class Rectangle with private data members length and breadth. Include member functions to calculate area and perimeter. Create objects to demonstrate their usage.