CS6301 PDS2 Notes Programming Data Structures2 Lecture Notes – CSE 3rd SEM Anna University

CS6301 PDS2 Notes

Anna University Regulation 2013 CSE CS6301 PDS2 Notes for all 5 units are provided below. Download link for CSE 3rd SEM CS6301 Programming Data Structures 2 Lecture Notes are listed down for students to make perfect utilization and score maximum marks with our study materials.

Unit -3 CS6301- Programming and Data Structures II

ABSTRACT  CLASSES

An abstract class is, conceptually, a class that cannot be instantiated and is usually implemented as a class that has one or more pure virtual (abstract) functions.

A pure virtual function is one which must be overridden by any concrete (i.e., non-abstract) derived class. This is indicated in the declaration with the syntax ” = 0″ in the member function’s declaration.

The following is an example of an abstract class:

class AB

{

public:

virtualvoid f()=0; };

Function AB::f is a pure virtual function. A function declaration cannot have both a pure specifier and a definition.

Abstract class cannot be used as a parameter type, a function return type, or the type of an explicit conversion, and not to declare an object of an abstract class. It can be used to declare pointers and references to an abstract class.

EXCEPTION HANDLING 

An exception is a problem that arises during the execution of a program. A C++ exception is a response to an exceptional circumstance that arises while a program is running, such as an attempt to divide by zero.

Exceptions provide a way to transfer control from one part of a program to another. C++ exception handling is built upon three keywords: try, catch, and throw.

  •  throw: A program throws an exception when a problem shows up. This is done using a throw keyword.
  •  catch: A program catches an exception with an exception handler at the place in a program where you want to handle the problem. The catch keyword indicates the catching of an exception.
  •  try: A try block identifies a block of code for which particular exceptions will be activated. It’s followed by one or more catch blocks.

CS6301 PDS2 Unit 1 notes  Download Here

CS6301 PDS2 Unit 2 notes  Download Here

CS6301 PDS2 Unit 3 notes  Download Here

CS6301 PDS2 Unit 4 notes  Download Here

CS6301 PDS2 Unit 5 notes  Download Here

If you require any other notes/study materials, you can comment in the below section.

Related Links

For CS6301 PDS2 Previous Year Question Papers – Click here

For CS6301 PDS2 Question Bank/2marks 16marks with answers – Click here

For CS6301 PDS2 Important Questions/Answer Key – Click here

Search Terms

Anna University 3rd SEM CSE PDS2 Lecture Notes

CS6301 Programming Data Structures2 Notes free download

Anna University CSE PDS2 Notes Regulation 2013

CS6301 Notes, PDS2 Unit wise Lecture Notes – CSE 3rd Semester

Comments

comments

Leave a Reply

sai
Scroll To Top
Copy Protected by Chetan's WP-Copyprotect.