Syllabuses


Explain concept of Association and Aggregation in object-oriented approach. What is Abstract class? Why Abstract classes are useful in constructing the applications?

Explain concept of Association and Aggregation in object-oriented approach. What is Abstract class? Why Abstract classes are useful in constructing the applications?

What do you mean by the term class and object? What are the relationship (syntax) of classes in C++? Write an example (syntax) to identify object of a particular class in C++.

What do you mean by the term class and object? What are the relationship (syntax) of classes in C++? Write an example (syntax) to identify object of a particular class in C++.

What are the different kinds of relationship among classes in the real world and how can we represent those relationships in classes?

What are the different kinds of relationship among classes in the real world and how can we represent those relationships in classes?

Define polymorphism and its types. How compile time polymorphism is different from run time polymorphism?

Define polymorphism and its types. How compile time polymorphism is different from run time polymorphism?

Explain Exception Handling and multithreading.

Explain Exception Handling and multithreading.

When does ambiguity arise in multiple inheritance? How can one resolve it? Develop a program in C++ to create a derived class having the following items, name, age, rollno, marks, employee id and designation. Design a base class having data members rollno, marks and another base class is employee having data members name, age and designation. These both base classes are inherited from a single base class person with data members name and age. The program should carry out the required input and output (member function for all.

When does ambiguity arise in multiple inheritance? How can one resolve it? Develop a program in C++ to create a derived class having the following items, name, age, rollno, marks, employee id and designation. Design a base class having data members rollno, marks and another base class is employee having data members name, age and designation. These both base classes are inherited from a single base class person with data members name and age. The program should carry out the required input and output (member function for all.

What is String? Explain functions of strings with suitable examples.

What is String? Explain functions of strings with suitable examples.

What is Operator overloading? Design a Distance class with data members to store distance in meters, centimeters, and millimeters. Write a program to overload addition and subtraction operators respectively on Distance class objects. Here both base classes are inherited from a single base class person with data members name and age. The program should carry out the required input and output (member function for all.

What is Operator overloading? Design a Distance class with data members to store distance in meters, centimeters, and millimeters. Write a program to overload addition and subtraction operators respectively on Distance class objects. Here both base classes are inherited from a single base class person with data members name and age. The program should carry out the required input and output (member function for all.

Explain the role of constructor and destructor in a class. Write the appropriate syntax for the copy constructor and parameterized constructors. What is Constructor? A constructor of the various overloaded constructors in C++ is a special type of member function of a class that is invoked automatically whenever an object of that class is created. It is used to initialize the data members of the object and to perform other necessary operations. A constructor has the same name as the class and does not have any return type. There are mainly three types of constructors in C++: 1. Default Constructor 2. Parameterized Constructor 3. Copy Constructor Example: class Complex { private: int real; int imag; public: Complex() { // Default constructor real = 0; imag = 0; } Complex(int r, int i) { // Parameterized constructor real = r; imag = i; } Complex(const Complex &c) { // Copy constructor real = c.real; imag = c.imag; } };

Explain the role of constructor and destructor in a class. Write the appropriate syntax for the copy constructor and parameterized constructors. What is Constructor? A constructor of the various overloaded constructors in C++ is a special type of member function of a class that is invoked automatically whenever an object of that class is created. It is used to initialize the data members of the object and to perform other necessary operations. A constructor has the same name as the class and does not have any return type. There are mainly three types of constructors in C++: 1. Default Constructor 2. Parameterized Constructor 3. Copy Constructor Example: class Complex { private: int real; int imag; public: Complex() { // Default constructor real = 0; imag = 0; } Complex(int r, int i) { // Parameterized constructor real = r; imag = i; } Complex(const Complex &c) { // Copy constructor real = c.real; imag = c.imag; } };

What are access modifiers? Explain each type of access modifiers in C++? How C++ helps in hiding data and implementing the data hiding in object-oriented programming?

What are access modifiers? Explain each type of access modifiers in C++? How C++ helps in hiding data and implementing the data hiding in object-oriented programming?