C++ is an enhanced version of the C language. C++ includes everything that is part of C language and adds support for object oriented programming (OOP). With very few, very major exceptions, C++ is a superset of C
C++ [ principles of object oriented programming ]Rome468
C++ is an enhanced version of C that adds support for object-oriented programming. It includes everything in C and allows for defining classes and objects. Classes allow grouping of related data and functions, and objects are instances of classes. Key concepts of OOP supported in C++ include encapsulation, inheritance, and polymorphism. Encapsulation binds data and functions together in a class and allows hiding implementation details. Inheritance allows defining new classes based on existing classes to reuse their functionality. Polymorphism enables different classes to have similarly named functions that demonstrate different behavior.
Object oriented programming involves modeling real-world objects as classes that encapsulate both data and functions. A class defines common properties and behaviors of objects without creating the objects themselves. Objects are instances of classes and have attributes that represent their state and member functions that define their responsibilities or behaviors. For example, a Point class could model points on a plane with x and y coordinate attributes and functions to move, print, and check if a point is at the origin. The main function then creates Point objects and calls their member functions.
The document discusses classes and objects in Python programming. It covers key concepts like defining classes, creating objects, assigning attributes to objects, passing objects as arguments and returning objects from functions. It provides examples to illustrate these concepts like defining a Point class to represent coordinate points, creating Rectangle class with a Point object as one of its attributes. The document also discusses concepts like aliasing of objects and how to create a copy of an object instead of alias.
Object-oriented programming (OOP) is a programming paradigm based on the concept of objects that contain data and code. The four pillars of OOP are data abstraction, encapsulation, inheritance, and polymorphism. Data abstraction hides internal details and provides essential information. Encapsulation bundles data with the methods that operate on that data, protecting data within a class. Inheritance allows new classes to inherit properties from existing classes. Polymorphism gives the same functions different meanings depending on usage.
The document discusses object-oriented programming concepts like classes, objects, member functions, data members, constructors, and encapsulation. It explains that a class defines the structure and behavior of objects, with data members representing attributes and member functions representing behaviors. Constructors initialize an object's data when it is created. Encapsulation protects data by making it private and only accessible through public member functions.
The document discusses classes and objects in C++. It defines what a class is - a blueprint for an object that contains data members and member functions. An object is an instance of a class that allocates memory. The document explains how to define a class with public and private members, create objects of a class, and access class members through objects using dot operators. It also covers constructors and how they initialize objects automatically upon creation.
C/C++ Programming interview questions and answers document discusses key concepts in C++ including encapsulation, inheritance, polymorphism, constructors, destructors, copy constructors, references, virtual functions, abstract classes, and memory alignment. The document provides definitions and examples to explain each concept.
This is the object oriented lecture nmbr 3rd , if you want lecture 2 or 1 u can check it my account , this is the programing tutorial, please follow me and thank you
C++ is an object-oriented programming language created by Bjarne Stroustrup in 1985 that maintains aspects of C while adding object-oriented features like classes. C++ can be used to create small programs or large applications across many domains. Key concepts covered include functions, classes, inheritance, polymorphism, and memory management techniques like realloc() and free().
C++ (pronounced "see plus plus") is a computer programming language based on C. It was created for writing programs for many different purposes. In the 1990s, C++ became one of the most used programming languages in the world.
The C++ programming language was developed by Bjarne Stroustrup at Bell Labs in the 1980s, and was originally named "C with classes". The language was planned as an improvement on the C programming language, adding features based on object-oriented programming. Step by step, a lot of advanced features were added to the language, like operator overloading, exception handling and templates.
The document discusses object oriented programming concepts in C++ including classes, objects, data members, member functions, data abstraction, encapsulation, inheritance, polymorphism, access specifiers, and constructors. It provides examples of defining a class with private, public, and protected data members and member functions. Constructors such as the default, parameterized, and copy constructor are demonstrated. Inheritance concepts such as the base class, derived class, types of inheritance and visibility modes are explained.
This document provides an introduction to C++ and covers 10 topics: 1) Object-oriented programming principles, 2) Classes and objects, 3) Functions, 4) Constructors and destructors, 5) Operator overloading and type conversion, 6) Inheritance, 7) Pointers, virtual functions and polymorphism, 8) Working with files, 9) Templates, and 10) Exception handling. Each topic is briefly described in 1-2 paragraphs with examples provided for some concepts like encapsulation, inheritance, polymorphism, and exception handling. The document serves as a high-level overview of key C++ concepts and features.
This document discusses object-oriented programming concepts like abstraction, encapsulation, constructors, and destructors in C++. It defines abstraction as hiding unnecessary details from the user to simplify complexity. Encapsulation refers to binding data with the methods that operate on the data. Constructors are special member functions that are called automatically when an object is created to initialize it. Destructors are called when an object is destroyed to perform cleanup. The document also provides examples of implementing these concepts in C++ code.
C++ is an object-oriented programming language that is an incremented version of C with classes added. Some key differences between C and C++ are that C++ uses object-oriented programming with classes that can contain both data and functions, while C focuses more on procedures/functions and allows any function to access data. The document then discusses the basic concepts of object-oriented programming in C++ including classes, objects, polymorphism, inheritance, encapsulation, and data abstraction. It provides examples of classes, objects, reference variables, default arguments, and dynamic memory allocation in C++.
FellowBuddy.com is an innovative platform that brings students together to share notes, exam papers, study guides, project reports and presentation for upcoming exams.
We connect Students who have an understanding of course material with Students who need help.
Benefits:-
# Students can catch up on notes they missed because of an absence.
# Underachievers can find peer developed notes that break down lecture and study material in a way that they can understand
# Students can earn better grades, save time and study effectively
Our Vision & Mission – Simplifying Students Life
Our Belief – “The great breakthrough in your life comes when you realize it, that you can learn anything you need to learn; to accomplish any goal that you have set for yourself. This means there are no limits on what you can be, have or do.”
Like Us - https://www.facebook.com/FellowBuddycom
The document introduces object-oriented programming (OOP) and some of its fundamental concepts like classes, objects, encapsulation, inheritance, and polymorphism. It provides an example class definition for an "item" class with private data members and public member functions to demonstrate how to define classes, create objects, and access class members in C++. The document includes a complete C++ program that uses the item class to illustrate these OOP concepts in action.
The document discusses object-oriented programming concepts in C++ including classes, objects, encapsulation, inheritance, polymorphism, and more. It provides examples of class definitions and accessing class members. Key points covered include:
- Classes are templates that define objects, while objects are instances of classes.
- Encapsulation involves wrapping data and functions together in a class. Inheritance allows classes to acquire properties from other classes.
- Polymorphism allows a method to perform different actions based on parameters. Message passing involves communication between objects.
- Structured programming divides a program into functions and data, while object-oriented programming divides it into objects that contain data and functions.
Encapsulation isolates the internal complexity of an object's operation from the rest of the application. Inheritance allows one class to reuse the state and behavior of another class. Polymorphism allows a client to treat different objects in the same way even if they were created from different classes and exhibit different behaviors.
The document discusses various C++ concepts including static class members and static member functions, the this pointer, friend functions, dynamic memory allocation using new and delete operators, function overloading and operator overloading, restrictions on operator overloading, type conversion, and templates and inheritance. It provides examples to illustrate concepts like static class members, friend functions, new and delete operators, function overloading, and operator overloading. The document serves as a reference for various advanced C++ programming concepts.
C++ is an object-oriented programming language created by Bjarne Stroustrup in 1985 that maintains aspects of C while adding object-oriented features like classes. C++ can be used to create everything from small programs to large applications and is a powerful general-purpose language. Inheritance allows code reusability by creating new classes from existing classes or base classes, where derived classes inherit capabilities from base classes but can add their own features and refinements. Polymorphism enables objects to react differently to the same function call through virtual functions, allowing different classes that inherit from a base class to provide their own implementation of a function.
The document provides an introduction to object oriented programming (OOP) compared to procedural programming. It discusses key concepts in OOP like objects, classes, attributes, methods, encapsulation. Objects contain attributes (data) and methods (behaviors). Classes are templates that define common attributes and methods for a set of objects. Encapsulation involves hiding class data and implementation details through access modifiers like private and public. Examples are provided to demonstrate how to define classes and create objects in C++ code.
This document provides an overview of the C++ programming language, including its history, features, and key concepts. It discusses how C++ extends the C language and is an intermediate-level language that incorporates both high-level and low-level features. The document also outlines important C++ concepts like object-oriented programming, data types, operators, variables, classes, and control structures. It provides examples and definitions of objects, classes, encapsulation, inheritance, polymorphism and other fundamental OOP concepts.
Object oriented programming concepts such as abstraction, encapsulation, inheritance and polymorphism are supported in .NET languages like C# and Visual Basic. Encapsulation groups related properties and methods into a single object. Inheritance allows new classes to be created from an existing class. Polymorphism allows multiple classes to be used interchangeably even if they implement properties or methods differently.
The document discusses object-oriented programming concepts like abstraction, encapsulation, and classes using C++ as an example. It explains that a class combines data representation and methods to manipulate the data. A class declaration describes the data members and public interface, while method definitions provide the implementation details. Access control keywords like private and public control access to class members. Member functions allow manipulating private data through a public interface.
The document discusses C++ functions and classes. It provides examples of void and returning value functions, including a program to convert Fahrenheit to Celsius using a returning value function. It also discusses basics of classes, including defining a class with data members and member functions, and creating an object of that class to access its members.
Search Engine Optimization (SEO) for Website SuccessMuneeb Rana
Unlock the essentials of Search Engine Optimization (SEO) with this concise, visually driven PowerPoint. Inside you’ll find:
✅ Clear definitions and core concepts of SEO
✅ A breakdown of On‑Page, Off‑Page, and Technical SEO
✅ Actionable best‑practice checklists for keyword research, content optimization, and link building
✅ A quick‑start toolkit featuring Google Analytics, Search Console, Ahrefs, SEMrush, and Moz
✅ Real‑world case study demonstrating a 70 % organic‑traffic lift
✅ Common challenges, algorithm updates, and tips for long‑term success
Whether you’re a digital‑marketing student, small‑business owner, or PR professional, this deck will help you boost visibility, build credibility, and drive sustainable traffic. Download, share, and start optimizing today!
C/C++ Programming interview questions and answers document discusses key concepts in C++ including encapsulation, inheritance, polymorphism, constructors, destructors, copy constructors, references, virtual functions, abstract classes, and memory alignment. The document provides definitions and examples to explain each concept.
This is the object oriented lecture nmbr 3rd , if you want lecture 2 or 1 u can check it my account , this is the programing tutorial, please follow me and thank you
C++ is an object-oriented programming language created by Bjarne Stroustrup in 1985 that maintains aspects of C while adding object-oriented features like classes. C++ can be used to create small programs or large applications across many domains. Key concepts covered include functions, classes, inheritance, polymorphism, and memory management techniques like realloc() and free().
C++ (pronounced "see plus plus") is a computer programming language based on C. It was created for writing programs for many different purposes. In the 1990s, C++ became one of the most used programming languages in the world.
The C++ programming language was developed by Bjarne Stroustrup at Bell Labs in the 1980s, and was originally named "C with classes". The language was planned as an improvement on the C programming language, adding features based on object-oriented programming. Step by step, a lot of advanced features were added to the language, like operator overloading, exception handling and templates.
The document discusses object oriented programming concepts in C++ including classes, objects, data members, member functions, data abstraction, encapsulation, inheritance, polymorphism, access specifiers, and constructors. It provides examples of defining a class with private, public, and protected data members and member functions. Constructors such as the default, parameterized, and copy constructor are demonstrated. Inheritance concepts such as the base class, derived class, types of inheritance and visibility modes are explained.
This document provides an introduction to C++ and covers 10 topics: 1) Object-oriented programming principles, 2) Classes and objects, 3) Functions, 4) Constructors and destructors, 5) Operator overloading and type conversion, 6) Inheritance, 7) Pointers, virtual functions and polymorphism, 8) Working with files, 9) Templates, and 10) Exception handling. Each topic is briefly described in 1-2 paragraphs with examples provided for some concepts like encapsulation, inheritance, polymorphism, and exception handling. The document serves as a high-level overview of key C++ concepts and features.
This document discusses object-oriented programming concepts like abstraction, encapsulation, constructors, and destructors in C++. It defines abstraction as hiding unnecessary details from the user to simplify complexity. Encapsulation refers to binding data with the methods that operate on the data. Constructors are special member functions that are called automatically when an object is created to initialize it. Destructors are called when an object is destroyed to perform cleanup. The document also provides examples of implementing these concepts in C++ code.
C++ is an object-oriented programming language that is an incremented version of C with classes added. Some key differences between C and C++ are that C++ uses object-oriented programming with classes that can contain both data and functions, while C focuses more on procedures/functions and allows any function to access data. The document then discusses the basic concepts of object-oriented programming in C++ including classes, objects, polymorphism, inheritance, encapsulation, and data abstraction. It provides examples of classes, objects, reference variables, default arguments, and dynamic memory allocation in C++.
FellowBuddy.com is an innovative platform that brings students together to share notes, exam papers, study guides, project reports and presentation for upcoming exams.
We connect Students who have an understanding of course material with Students who need help.
Benefits:-
# Students can catch up on notes they missed because of an absence.
# Underachievers can find peer developed notes that break down lecture and study material in a way that they can understand
# Students can earn better grades, save time and study effectively
Our Vision & Mission – Simplifying Students Life
Our Belief – “The great breakthrough in your life comes when you realize it, that you can learn anything you need to learn; to accomplish any goal that you have set for yourself. This means there are no limits on what you can be, have or do.”
Like Us - https://www.facebook.com/FellowBuddycom
The document introduces object-oriented programming (OOP) and some of its fundamental concepts like classes, objects, encapsulation, inheritance, and polymorphism. It provides an example class definition for an "item" class with private data members and public member functions to demonstrate how to define classes, create objects, and access class members in C++. The document includes a complete C++ program that uses the item class to illustrate these OOP concepts in action.
The document discusses object-oriented programming concepts in C++ including classes, objects, encapsulation, inheritance, polymorphism, and more. It provides examples of class definitions and accessing class members. Key points covered include:
- Classes are templates that define objects, while objects are instances of classes.
- Encapsulation involves wrapping data and functions together in a class. Inheritance allows classes to acquire properties from other classes.
- Polymorphism allows a method to perform different actions based on parameters. Message passing involves communication between objects.
- Structured programming divides a program into functions and data, while object-oriented programming divides it into objects that contain data and functions.
Encapsulation isolates the internal complexity of an object's operation from the rest of the application. Inheritance allows one class to reuse the state and behavior of another class. Polymorphism allows a client to treat different objects in the same way even if they were created from different classes and exhibit different behaviors.
The document discusses various C++ concepts including static class members and static member functions, the this pointer, friend functions, dynamic memory allocation using new and delete operators, function overloading and operator overloading, restrictions on operator overloading, type conversion, and templates and inheritance. It provides examples to illustrate concepts like static class members, friend functions, new and delete operators, function overloading, and operator overloading. The document serves as a reference for various advanced C++ programming concepts.
C++ is an object-oriented programming language created by Bjarne Stroustrup in 1985 that maintains aspects of C while adding object-oriented features like classes. C++ can be used to create everything from small programs to large applications and is a powerful general-purpose language. Inheritance allows code reusability by creating new classes from existing classes or base classes, where derived classes inherit capabilities from base classes but can add their own features and refinements. Polymorphism enables objects to react differently to the same function call through virtual functions, allowing different classes that inherit from a base class to provide their own implementation of a function.
The document provides an introduction to object oriented programming (OOP) compared to procedural programming. It discusses key concepts in OOP like objects, classes, attributes, methods, encapsulation. Objects contain attributes (data) and methods (behaviors). Classes are templates that define common attributes and methods for a set of objects. Encapsulation involves hiding class data and implementation details through access modifiers like private and public. Examples are provided to demonstrate how to define classes and create objects in C++ code.
This document provides an overview of the C++ programming language, including its history, features, and key concepts. It discusses how C++ extends the C language and is an intermediate-level language that incorporates both high-level and low-level features. The document also outlines important C++ concepts like object-oriented programming, data types, operators, variables, classes, and control structures. It provides examples and definitions of objects, classes, encapsulation, inheritance, polymorphism and other fundamental OOP concepts.
Object oriented programming concepts such as abstraction, encapsulation, inheritance and polymorphism are supported in .NET languages like C# and Visual Basic. Encapsulation groups related properties and methods into a single object. Inheritance allows new classes to be created from an existing class. Polymorphism allows multiple classes to be used interchangeably even if they implement properties or methods differently.
The document discusses object-oriented programming concepts like abstraction, encapsulation, and classes using C++ as an example. It explains that a class combines data representation and methods to manipulate the data. A class declaration describes the data members and public interface, while method definitions provide the implementation details. Access control keywords like private and public control access to class members. Member functions allow manipulating private data through a public interface.
The document discusses C++ functions and classes. It provides examples of void and returning value functions, including a program to convert Fahrenheit to Celsius using a returning value function. It also discusses basics of classes, including defining a class with data members and member functions, and creating an object of that class to access its members.
Search Engine Optimization (SEO) for Website SuccessMuneeb Rana
Unlock the essentials of Search Engine Optimization (SEO) with this concise, visually driven PowerPoint. Inside you’ll find:
✅ Clear definitions and core concepts of SEO
✅ A breakdown of On‑Page, Off‑Page, and Technical SEO
✅ Actionable best‑practice checklists for keyword research, content optimization, and link building
✅ A quick‑start toolkit featuring Google Analytics, Search Console, Ahrefs, SEMrush, and Moz
✅ Real‑world case study demonstrating a 70 % organic‑traffic lift
✅ Common challenges, algorithm updates, and tips for long‑term success
Whether you’re a digital‑marketing student, small‑business owner, or PR professional, this deck will help you boost visibility, build credibility, and drive sustainable traffic. Download, share, and start optimizing today!
Smart Borrowing: Everything You Need to Know About Short Term Loans in Indiafincrifcontent
Short term loans in India are becoming a go-to financial solution for individuals needing quick access to funds without long-term commitments. With fast approval, minimal documentation, and flexible tenures, these loans are ideal for handling emergencies, unexpected bills, or short-term goals. Understanding key aspects like short term loan features, eligibility, required documentation, and how to apply for a short term loan can help borrowers make informed decisions. Whether you're salaried or self-employed, short term loans offer convenience and speed. This guide walks you through the essentials so you can secure the right loan at the right time.
Analysis of Quantitative Data Parametric and non-parametric tests.pptxShrutidhara2
This presentation covers the following points--
Parametric Tests
• Testing the Significance of the Difference between Means
• Analysis of Variance (ANOVA) - One way and Two way
• Analysis of Co-variance (One-way)
Non-Parametric Tests:
• Chi-Square test
• Sign test
• Median test
• Sum of Rank test
• Mann-Whitney U-test
Moreover, it includes a comparison of parametric and non-parametric tests, a comparison of one-way ANOVA, two-way ANOVA, and one-way ANCOVA.
How to Create Time Off Request in Odoo 18 Time OffCeline George
Odoo 18 provides an efficient way to manage employee leave through the Time Off module. Employees can easily submit requests, and managers can approve or reject them based on company policies.
Pragya Champion's Chalice is the annual Intra Pragya General Quiz hosted by the club's outgoing President and Vice President. The prelims and finals are both given in the singular set.
Happy Summer Everyone. This is also timeless for future viewing.
You all have been upgraded from ‘Guest’ Students to ‘Graduate’ Students. Do Welcome Back. For new guests, please see our free weekly workshops from Spring ‘25’
Blessings, Love, and Namaste’.
Do Welcome to Summer ‘25’ for LDMMIA.
TY, for surviving our First Season/Term of our Reiki Yoga Workshops. These presentations/workshop are designed for your energy wellness.
Also, professional expansion for Summer ‘25’. All updates will be uploaded here and digital notes within our Merch Shop. (I am Completely, using the suggestions of AI for my Biz style. Its spooky accurate. So far, AI has been very helpful for office and studio admin. I even updated my AI avatars. Similar to my SL Meta avatar.)
Do take Care of yourselves. This is only a Bonus Checkin. The Next Workshop will be Lecture/Session 8. I will complete by Friday.
https://ldm-mia.creator-spring.com/
Trends Spotting Strategic foresight for tomorrow’s education systems - Debora...EduSkills OECD
Deborah Nusche, Senior Analyst, OECD presents at the OECD webinar 'Trends Spotting: Strategic foresight for tomorrow’s education systems' on 5 June 2025. You can check out the webinar on the website https://oecdedutoday.com/webinars/ Other speakers included: Deborah Nusche, Senior Analyst, OECD
Sophie Howe, Future Governance Adviser at the School of International Futures, first Future Generations Commissioner for Wales (2016-2023)
Davina Marie, Interdisciplinary Lead, Queens College London
Thomas Jørgensen, Director for Policy Coordination and Foresight at European University Association
How to Manage Maintenance Request in Odoo 18Celine George
Efficient maintenance management is crucial for keeping equipment and work centers running smoothly in any business. Odoo 18 provides a Maintenance module that helps track, schedule, and manage maintenance requests efficiently.
Christian education is an important element in forming moral values, ethical Behaviour and
promoting social unity, especially in diverse nations like in the Caribbean. This study examined
the impact of Christian education on the moral growth in the Caribbean, characterized by
significant Christian denomination, like the Orthodox, Catholic, Methodist, Lutheran and
Pentecostal. Acknowledging the historical and social intricacies in the Caribbean, this study
tends to understand the way in which Christian education mold ethical decision making, influence interpersonal relationships and promote communal values. These studies’ uses, qualitative and quantitative research method to conduct semi-structured interviews for twenty
(25) Church respondents which cut across different age groups and genders in the Caribbean. A
thematic analysis was utilized to identify recurring themes related to ethical Behaviour, communal values and moral development. The study analyses the three objectives of the study:
how Christian education Mold’s ethical Behaviour and enhance communal values, the role of
Christian educating in promoting ecumenism and the effect of Christian education on moral
development. Moreover, the findings show that Christian education serves as a fundamental role
for personal moral evaluation, instilling a well-structured moral value, promoting good
Behaviour and communal responsibility such as integrity, compassion, love and respect. However, the study also highlighted challenges including biases in Christian teachings, exclusivity and misconceptions about certain practices, which impede the actualization of
*Order Hemiptera:*
Hemiptera, commonly known as true bugs, is a large and diverse order of insects that includes cicadas, aphids, leafhoppers, and shield bugs. Characterized by their piercing-sucking mouthparts, Hemiptera feed on plant sap, other insects, or small animals. Many species are significant pests, while others are beneficial predators.
*Order Neuroptera:*
Neuroptera, also known as net-winged insects, is an order of insects that includes lacewings, antlions, and owlflies. Characterized by their delicate, net-like wing venation and large, often prominent eyes, Neuroptera are predators that feed on other insects, playing an important role in biological control. Many species have aquatic larvae, adding to their ecological diversity.
POS Reporting in Odoo 18 - Odoo 18 SlidesCeline George
To view all the available reports in Point of Sale, navigate to Point of Sale > Reporting. In this section, you will find detailed reports such as the Orders Report, Sales Details Report, and Session Report, as shown below.
Prottutponnomotittwa: A Quiz That Echoed the Pulse of Bengal
On the 31st of May, 2025, PRAGYA – The Official Quiz Club of UEM Kolkata – did not merely organize another quiz. It hosted an ode to Bengal — its people, its quirks, its politics, its art, its rebellion, its heritage. Titled Prottutponnomotittwa, the quiz stood as a metaphor for what Bengal truly is: sharp, intuitive, spontaneous, reflective. A cultural cosmos that thrives on instinct, memory, and emotion.
From the very first slide, it became clear — this wasn’t a quiz made to showcase difficulty or elitism. It was crafted with love — love for Bangla, for its past, present, and its ever-persistent contradictions.
The diversity of the answer list tells the real story of the quiz. The curation was not random. Each answer was a string on a veena of cultural resonance.
In the “Cultural Pairings” round, Anusheh Anadil and Arnob were placed not just as musicians, but as voices of a modern, cross-border Bangla. Their works, which blend baul, jazz, and urban folk, show how Bengal exists simultaneously in Dhaka and Shantiniketan.
The inclusion of Ritwik Chakraborty and Srijit Mukherjee (as a songwriter) showed how the quiz masters understood evolution. Bangla cinema isn’t frozen in the Ray-Ghatak past. It lives, argues, breaks molds — just like these men do.
From Kalyani Black Label to Radhunipagol Chal, consumer culture too had its place. One is liquid courage, the other culinary madness — both deeply Bengali.
The heart truly swelled when the answers touched upon Baidyanath Bhattacharya and Chandril. Both satirists, both sharp, both essential. It was not just about naming them — it was about understanding what different types of literature means in a Bengali context.
Titumir — the play about a peasant rebel who built his own bamboo fort and dared to challenge the British.
Krishnananda Agamvagisha — the mystical Tantric who shaped how we understand esoteric Bengali spiritualism.
Subhas Chandra Bose — the eternal enigma, the braveheart whose shadow looms large over Bengal’s political psyche.
Probashe Ghorkonna — a story lived by many Bengalis. The medinipur daughter, who made a wholesome family, not only in bengal, but across the borders. This answer wasn’t just information. It was emotion.
By the end, what lingered was not the scoreboard. It was a feeling.
The feeling of sitting in a room where Chalchitro meets Chabiwala, where Jamai Shosthi shares the stage with Gayatri Spivak, where Bhupen Hazarika sings with Hemanga Biswas, and where Alimuddin Road and Webskitters occupy the same mental map.
You don’t just remember questions from this quiz.
You remember how it made you feel.
You remember smiling at Keet Keet, nodding at Prabuddha Dasgupta, getting goosebumps at the mention of Bose, and tearing up quietly when someone got Radhunipagol Chal right.
This wasn’t a quiz.
This was an emotional ride of Bangaliyana.
This was — and will remain — Prottutponnomotittwa.
2. OOP concepts
When you approach a programming problem in an
object oriented language, you no longer ask how
the problem will be divided into functions but how
it will be divided into objects:
Thinking in terms of objects rather than functions has
helpful effect on how easily you can design
programs, because the real world consists of
objects and there is a close match between objects
in the programming sense and objects in the real
world
3. Ct’d
What is object?
Many real-world objects have both attribute (xtics that can
change) abilities or responsibilities- (things they can do)
Real-world object = Attributes(state) + Abilities(behavior,
responsibility)
Programming object = Data + Functions
The match between programming object and real-world
objects is the result of combining data and member
functions
How is object defined in C++ program?
4. Classes and Objects
• Class is a new data type which is used to define objects. A
class serves as a plan , or a template. It specifies what data
and what functions will be included in objects of that class.
Writing a class does not create any objects.
• A class is a description of similar objects
• Objects are instances of classes
• Example: A model (class) to define points in a graphics
program.
Points on a plane must have two properties (states):
– X and y coordinates. we can use two integer variables to
represent these properties.
5. Ct’d
in our program, points should have the following abilities
(responsibilities):
• Point can move on the plane : move function
• Point can show their coordinates on the screen: print
function
• Point can answer the question whether they are on the
zero point (00) or not: is_zero function
6. Example point class:
Class point{ // Declaration of point class
Int x,y; // attribute: x and y coordinates .. Attributes
Public: // we will discuss later
void move(int, int); // A function to move the points ..
Behavior
void print(); // to print the coordinates on the screen ..
responsibilities
Bool is _zero(0; //is the point on the zero point (00)
}; // End of class declaration (; must be there)
7. In our example first data and then the function prototype s
are written . It is also possible to write them in reverse
order.
Data and function s in a class are called members of the class
In our example only the prototypes of the functions are
written in the class declaration. The bodies may take place
in other parts (in other files) of the program.
If the body of a function is written in the class declaration.
Then this function is defined as an inline function(macro).
8. // ****Bodies of Member Functions****
// a function to move the points
void point::move(int new_x,int new_y)
{
X=new_x; // assigns new value to x coorrdinate
y = new_y; // assigns new value to y coordinate
}
// To print the coordinate on the screen
Void point::print()
{
Cout<<“X= “ <<x<<“,Y= “ <<y << endl;
}
9. Ct’d
// is the point on the zero point(00)
Bool point::is_zero()
{
return (x ==0) &&(y ==0); // if x=0 AND y=0 returns true
}
10. Now we have a model (template) to define point objects. We
can create necessary point (objects) using the model.
int main()
{
Point.point1, point2; //2 object are defined: point1 and point2
Point1.move(100,50); // point1 moves to (100,50)
Point1.print(); // point1 coordinate to the screen
Point1.move(20,65); // point1moves to (20,65)
poit1,.print(); // point1’s coordinates on the screen
If (piont1.is_zero()) // is point1 on (00)?
cout <<“point1 is now on zero point(00)” << endl;
11. else
cout << “ point1 is NOT on zero point(00)” << endl;
point2.move(00); // point2 moves to (00)
if (point2.is_zero()) // is point2 on (00)?
cout << “point2 is now on zero point(00)” << endl;
else
cout <<“ point2 is NOT on zero point (00) << endl;
return o;
}
12. C++ Terminology
• A class is a grouping of data and functions. A class is very
much like a structure type as used in ANSI-C, it is only a
pattern (a template) to be used to create a variables which
can be manipulated in a program
Classes are design to give certain services
• An object is an instance of a class, which is similar to a
variable defined as an instance of a type. An object is what
you actually use in a program
• An attribute is a data member of a class that can take
different values for different instances (objects) of this
class. Example; Name of a student, coordinates of a point
13. Ct’d
• A methods (member function) is a function contained
within the class . You will find the functions used within a
class often referred to as methods in programming
literature
classes fulfill their services (responsibilities) by the help of
their methods.
• A message is the same thing as a function call. In object
oriented programming , we send messages instead of
calling functions. For the time being , you can think of
them as identical. Later we will see that they are in fact
slightly different
messages are sent to object to get some services from them.
14. conclusion
until now that we have discovered some features of the oop
and the c++.
Our programs consist of object as the real world do.
Classes are living (active) data types which are used to
defined objects. We can send messages (orders) to objects
to enable them to do something .
Classes include both data and the functions involved with
these data (encapsulation).As the result:
• Software object are similar to the real world objects
• Programs are easy to read and understand.
• It is easy to find errors
• It supports modularity and teamwork
15. Defining object as inline Functions
(macro)
In the previous example, only the prototypes of the member
functions are written in the class declaration. The bodies of
the methods are defined outside the class.
It is also possible to write bodies of methods in the class. Such
methods are defined as inline functions
For example the is_zero method of the point class can be
define as an inline function as follows:
class point { //Declaration of point class
int x,y; // properties: x and y coordinates
public:
void move(int, int); // to print the coordinates on the
screen
16. Ct’d
void print(); // to print the coordinates on the screen
bool is_zero() // is the point on the zero point(0,0) inline
function
{
return (x ==0) &&(y == 0); // the body of is _zero
}
};
NB: Do not write long methods in the class declaration. It
decreases the readability and the performance of the
program
17. Defining Dynamic Objects
Classes can be used to define variable like built-in data type
(int, float,char etc) of the compiler.
For example it is possible to define pointers to objects. In the
example below two pointers (ptr1 and ptr2) to objects of
type point are defined.
Int main()
{
Point*ptr1 = new point; // allocating memory for the
object pointed by ptr1
Point*ptr2 = new point; // allocating memory for the
object pointed by ptr2
18. Ct’d
ptr1->move(50,50); //’move’ message to the object
pointed by ptr1
Ptr1->print(); // ‘print’ message to the object pointed
by ptr1
Ptr2->move(100,150); // ‘move’ message to the object
pointed by ptr2
If (ptr2->is_zer0()) // is the object pointed by ptr2 on zero
cout<<“Object pointed by ptr2 is NOT on zero.”<<endl;
delete ptr1 // Releasing the memory
delete ptr2;
return 0;
}
19. Defining array of Objects
We may define static and dynamic array of objects. In the next
example below we shall see later how to define dynamic array of
objects
int main()
{
Point array[10]; //defining an array with ten objects
Array[0].move(15,40); // ‘move message to the first element
(indices 0)
Array[1].move(75,35); //’move’ message to the second
element (indices 1)
:
for (int i =0; i < 10; i ++) // ‘print’ message to all objects in the array
21. Controlling Access to Members
we can divide programmers into two groups: classs creators (those
who create new data type) and client programmers (the class
consumers who use the data types in their applications)
The goal of the class creator is to build a class that includes all necessary
to the client programmer and keeps everything else hidden
The goal of thee client programmer is to collect a toolbox full of classes
to use for rapid application development
The first reason for access control is to keep client programmer’s hands
off portions they shouldn’t touch. The hidden parts are only
necessary for the internal machinations of the data type but not part
of the interface that users need in order to solve their particular
problems
22. Ct’d
the second reason for access control is that. If it’s hidden, the
client programmer can’t use it , which means that the class
creator can change the hidden portion at will without
worrying a bout the impact to anyone else.
This protection also prevent accidentally changes of states of
objects.
The label public:, private : (and protected: as well
shall see in future) are use to control access to a
class’ data members and functions
• Private class members can be access only by
member of that class.
23. Ct’d
Public members may be access by any function in the
program
The default access mode for classes is private: After each
label, the mode that was invoked by that label applies until
the next label or until the end of class declaration.
The primary purpose of public members is to present to the
class’s clients a view of the services the class provides. This
set of services forms the publics interface of the class
The private members are not accessible to the
clients of a class. They form the implementation of
the class
25. example
• We modify the move function of the class point clients of
this class can not move a point outside a window with a
size of 500x300.
class point { //point class
int x,y; // private members: x and y coordinates
public: // public members
bool move(int,int); //A function to move the points
void print(); // to print the coordinates on the screen
bool is_zero(); // is the point on the zero point (0,0)
};
26. Ct’d
// a function to move thepoint (0,500x0,300)
Bool point:: move (int new_x, int new_y)
{
if (new_x>0 && new_x< 500 && // if new_x is in 0-500
new_y > 0 && new_y <300) // if new_y is in 0-300
{
x =new_x; // assigns new value to x coordinate
y = new_y; // assigns new value to y coordinate
return true; // input values are accepted
}
return false; // input values are not accepted
}
27. Ct’d
The new move function returns a boolean value to inform
the client programmer whether the input values are
accepted or not.
Here is the main fnction:
Int main()
{
point p1; // p1 object is defined
int x’y; // Two variables to read some values from
the keyboard
Cout << “Give x and y coordinates”;
cin>>x>>y; // read two values from the keyboard
28. Ct’d
if (p1.move(x,y) // send move message and check the result
p1.print(); // if result is OK print coordinates on the screen
else
cout <<“nInput values are not accepted”;
}
it is not possible to assign a value to x or y directly outside the class
p1.x = -10; // ERROR! X is private
Struct keyword in c++:
Class and struct keywords have very similar meaning in the c++. They
both are used to build object models. The only difference is their
default access mode
The default access mode for class is private and
The default access mode for struct is public
29. Friend Functions and Friend Classes
A function or an entire class may be declared to be a friend of
another class.
A friend of a class has the right to access all members
(private, protected or public) of the class.
Class A{
friend class B; // class B is a friend of class A
Private: // public members of A
Int I;
float f;
public: // public members of A
void func1(char*c);
};
30. Ct’d
Class B{ // class B
int j;
public:
void
func2(A&s){cout<<s.i;} // B can access private members of A
};
Int main() {
A ObjA;
BobjB;
objB.function2(objA);
return 0;
NB here A is NOT a friend of B. A can not access private members of B
31. Ct’d
A friend function has right to access all members (private,
protected or public) of the class
class point { // point class
friend void zero (point &); // A friend function of point
int x,y; // private members: x, y coordinates
public: // public members
bool move(int, int); // A function to move the points
void print() // to print the coordinates on the screen
bol is_zero(); // is the point on the zero point(0,0)
},
32. Ct’d
// Sssigns zero to all coordinates
Void zero(print &p) // Not a member of any class
{
p.x = 0; // assign zero to x of p
p.y = 0; // assign zero to y of p
}
33. This pointer
Each object has its own data space in the memory of the
computer. When an object is defined, memory is allocated
only for its data members.
The code of member functions are created only once. Each
object of the same class uses the same function code.
point1
point2
X = 100
Y = 50
X =200
Y = 300
move
print
Is_zero
34. Ct’d
How does c++ ensure that the proper object is
referenced?
C++ compiler maintains a pointer , called the this
pointer
A c++ compiler defines an object pointer this . When a
member function is called, this pointer contains the
address of the object, for which the function is
involked.
so member functions can access the data members
using the pointer this.