Learn about the basic fundamentals of java and important for the different company's interview. Topics like JRE, JDK, Java Keywords, Primitive DataTypes, Types of Variables, Logical, Shift and Bitwise Operator working, Command Line Argument, Handling Arrays, Array Copy, and different programs and output based programs.
Pointer
Features of Pointers
Pointer Declaration
Pointer to Class
Pointer Object
The this Pointer
Pointer to Derived Classes and Base Class
Binding Polymorphisms and Virtual Functions
Introduction
Binding in C++
Virtual Functions
Rules for Virtual Function
Virtual Destructor
Templates
Generic Programming with Templates
Need for Templates
Definition of class Templates
Normal Function Templates
Over Loading of Template Function
Bubble Sort Using Function Templates
Difference Between Templates and Macros
Linked Lists with Templates
Exception Handling
Principles of Exception Handling
The Keywords try throw and catch
Multiple Catch Statements
Specifying Exceptions
Learn about the basic fundamentals of java and important for the different company's interview. Topics like JRE, JDK, Java Keywords, Primitive DataTypes, Types of Variables, Logical, Shift and Bitwise Operator working, Command Line Argument, Handling Arrays, Array Copy, and different programs and output based programs.
Pointer
Features of Pointers
Pointer Declaration
Pointer to Class
Pointer Object
The this Pointer
Pointer to Derived Classes and Base Class
Binding Polymorphisms and Virtual Functions
Introduction
Binding in C++
Virtual Functions
Rules for Virtual Function
Virtual Destructor
Templates
Generic Programming with Templates
Need for Templates
Definition of class Templates
Normal Function Templates
Over Loading of Template Function
Bubble Sort Using Function Templates
Difference Between Templates and Macros
Linked Lists with Templates
Exception Handling
Principles of Exception Handling
The Keywords try throw and catch
Multiple Catch Statements
Specifying Exceptions
Operator Overloading
The keyword Operator
Overloading Unary Operator
Operator Return Type
Overloading Assignment Operator (=)
Rules for Overloading Operators
Inheritance
Reusability
Types of Inheritance
Virtual Base Classes
Object as a Class Member
Abstract Classes
Advantages of Inheritance
Disadvantages of Inheritance
Introduction to C++
Difference between C and C++
Evolution of C++
Procedure Oriented Programming vs Object OrientedProgramming
Key concepts of Object-Oriented Programming
Advantages and Disadvantages of OOP
In this session you will learn:
Deep dive into coding OOP with Java… with practical examples.
How to create a class
How to create objects
How to create instance variables
How to create class variables
Constructors
For more information: https://www.mindsmapped.com/courses/software-development/become-a-java-developer-hands-on-training/
Classes and Objects
Classes in C++
Declaring Objects
Access Specifiers and their Scope
Defining Member Function
Overloading Member Function
Nested class
Constructors and Destructors
Introduction
Characteristics of Constructor and Destructor
Application with Constructor
Constructor with Arguments (parameterized Constructors)
Destructors
Do you want to learn functional programming in Java using lambda expressions introduced in Java 8? Do you want to explore the foundational concepts to explore powerful stream API? This presentation provides an overview of lambda functions introduced in Java 8 through examples. Topics covered: What is functional programming, creating lambda expressions, functional interfaces, built-in functional interfaces, and method references.
Make sure you have JDK 8 installed for trying out the programs as you go through the self-contained programming examples.
Operator Overloading
The keyword Operator
Overloading Unary Operator
Operator Return Type
Overloading Assignment Operator (=)
Rules for Overloading Operators
Inheritance
Reusability
Types of Inheritance
Virtual Base Classes
Object as a Class Member
Abstract Classes
Advantages of Inheritance
Disadvantages of Inheritance
Introduction to C++
Difference between C and C++
Evolution of C++
Procedure Oriented Programming vs Object OrientedProgramming
Key concepts of Object-Oriented Programming
Advantages and Disadvantages of OOP
In this session you will learn:
Deep dive into coding OOP with Java… with practical examples.
How to create a class
How to create objects
How to create instance variables
How to create class variables
Constructors
For more information: https://www.mindsmapped.com/courses/software-development/become-a-java-developer-hands-on-training/
Classes and Objects
Classes in C++
Declaring Objects
Access Specifiers and their Scope
Defining Member Function
Overloading Member Function
Nested class
Constructors and Destructors
Introduction
Characteristics of Constructor and Destructor
Application with Constructor
Constructor with Arguments (parameterized Constructors)
Destructors
Do you want to learn functional programming in Java using lambda expressions introduced in Java 8? Do you want to explore the foundational concepts to explore powerful stream API? This presentation provides an overview of lambda functions introduced in Java 8 through examples. Topics covered: What is functional programming, creating lambda expressions, functional interfaces, built-in functional interfaces, and method references.
Make sure you have JDK 8 installed for trying out the programs as you go through the self-contained programming examples.
Macroeconomics- Movie Location
This will be used as part of your Personal Professional Portfolio once graded.
Objective:
Prepare a presentation or a paper using research, basic comparative analysis, data organization and application of economic information. You will make an informed assessment of an economic climate outside of the United States to accomplish an entertainment industry objective.
Embracing GenAI - A Strategic ImperativePeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
Francesca Gottschalk - How can education support child empowerment.pptxEduSkills OECD
Francesca Gottschalk from the OECD’s Centre for Educational Research and Innovation presents at the Ask an Expert Webinar: How can education support child empowerment?
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
A Strategic Approach: GenAI in EducationPeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
Normal Labour/ Stages of Labour/ Mechanism of LabourWasim Ak
Normal labor is also termed spontaneous labor, defined as the natural physiological process through which the fetus, placenta, and membranes are expelled from the uterus through the birth canal at term (37 to 42 weeks
2. Objectives
To understand objects and classes, and the use of classes to
model objects
To learn how to declare a class and how to create an object of
a class
To understand the role of constructors when creating objects
To learn constructor overloading
To understand the scope of data fields (access modifiers),
encapsulation
To reference hidden data field using the this pointer
3. Object-oriented Programming (OOP)
Object-oriented programming approach organizes
programs in a way that mirrors the real world, in
which all objects are associated with both attributes
and behaviors
Object-oriented programming involves thinking in
terms of objects
An OOP program can be viewed as a collection of
cooperating objects
4. OO Programming Concepts
Classes and objects are the two main aspects of object
oriented programming.
A class is an abstraction or a template that creates a new
type whereas objects are instances of the class.
An object represents an entity in the real world that can
be distinctly identified. For example, a student, a desk, a
circle, a button, and even a loan can all be viewed as
objects.
5. Classes in OOP
Classes are constructs/templates that define
objects of the same type.
A class uses variables to define data fields and
functions to define behaviors.
Additionally, a class provides a special type of
function, known as constructors, which are invoked
to construct objects from the class.
6. Objects in OOP
An object has a unique identity, state, and behaviors.
The state of an object consists of a set of data fields (also
known as properties) with their current values.
The behavior of an object is defined by a set of functions
7. Class and Object
A class is template that defines what an object’s
data and function will be. A C++ class uses
variables to define data fields, and functions to
define behavior.
An object is an instance of a class (the terms
object and instance are often interchangeable).
8. UML Diagram for Class and Object
Circle
radius: double
Circle()
Circle(newRadius: double)
getArea(): double
circle1: Circle
radius: 10
Class name
Data fields
Constructors and Methods
circle2: Circle
radius: 25
circle3: Circle
radius: 125
10. Class in C++ - Example
class Circle
{
public:
// The radius of this circle
double radius;
// Construct a circle object
Circle()
{
radius = 1;
}
// Construct a circle object
Circle(double newRadius)
{
radius = newRadius;
}
// Return the area of this circle
double getArea()
{
return radius * radius * 3.14159;
}
};
Data field
Function
Constructors
11. Class is a Type
You can use primitive data types to define
variables.
You can also use class names to declare object
names. In this sense, a class is an abstract type,
data type or user-defined data type.
12. Class Data Members and Member Functions
The data items within a class are
called data members or data
fields or instance variables
Member functions are functions
that are included within a class.
Also known as instance
functions.
13. Object Creation - Instantiation
In C++, you can assign a name when creating an object.
A constructor is invoked when an object is created.
The syntax to create an object using the no-arg
constructor is
ClassName objectName;
Defining objects in this way means creating them. This is
also called instantiating them.
14. A Simple Program – Object Creation
class Circle
{
private:
double radius;
public:
Circle()
{ radius = 5.0; }
double getArea()
{ return radius * radius * 3.14159; }
};
Object InstanceC1
: C1
radius: 5.0
void main()
{
Circle C1;
//C1.radius = 10; can’t access private member outside the class
cout<<“Area of circle = “<<C1.getArea();
}
Allocate memory
for radius
15. Constructors
In object-oriented programming, a constructor in a class is a
special function used to create an object. Constructor has
exactly the same name as the defining class
Constructors can be overloaded (i.e., multiple constructors
with different signatures), making it easy to construct objects
with different initial data values.
A class may be declared without constructors. In this case, a
no-argument constructor with an empty body is implicitly
declared in the class known as default constructor
Note: Default constructor is provided automatically only if no
constructors are explicitly declared in the class.
16. Constructors’ Properties
Constructors must have the same name as the class
itself.
Constructors do not have a return type—not even void.
Constructors play the role of initializing objects.
17. Object Member Access Operator
After object creation, its data and functions can be
accessed (invoked) using the (.) operator, also known
as the object member access operator.
objectName.dataField references a data field in the
object
objectName.function() invokes a function on the
object
18. A Simple Program – Accessing Members
class Circle
{
private:
double radius;
public:
Circle()
{ radius = 5.0; }
double getArea()
{ return radius * radius * 3.14159; }
};
Object InstanceC1
: C1
radius: 5.0
void main()
{
Circle C1;
//C1.radius = 10; can’t access private member outside the class
cout<<“Area of circle = “<<C1.getArea();
}
Allocate memory
for radius
19. Access Modifiers
Access modifiers are used to set access levels
for classes, variables, methods and constructors
private, public, and protected
In C++, default accessibility is private
20. Data Hiding - Data Field Encapsulation
A key feature of OOP is data hiding, which means that
data is concealed within a class so that it cannot be
accessed mistakenly by functions outside the class.
To prevent direct modification of class attributes
(outside the class), the primary mechanism for hiding
data is to put it in a class and make it private using
private keyword. This is known as data field
encapsulation.
21. Hidden from Whom?
Data hiding means hiding data from parts of the
program that don’t need to access it. More
specifically, one class’s data is hidden from other
classes.
Data hiding is designed to protect well-intentioned
programmers from mistakes.
22. A Simple Program – Accessing Member Function
class Circle
{
private:
double radius;
public:
Circle()
{ radius = 5.0; }
double getArea()
{ return radius * radius * 3.14159; }
};
Object InstanceC1
: C1
radius: 5.0
void main()
{
Circle C1;
//C1.radius = 10; can’t access private member outside the class
cout<<“Area of circle = “<<C1.getArea();
}
Allocate memory
for radius
23. A Simple Program – Default Constructor
class Circle
{
private:
double radius;
public:
double getArea()
{ return radius * radius * 3.14159; }
};
// No Constructor Here
Object InstanceC1
void main()
{
Circle C1;
//C1.radius = 10; can’t access private member outside the class
cout<<“Area of circle = “<<C1.getArea();
}
//Default Constructor
Circle()
{ }
: C1
radius: Any Value
Allocate memory
for radius
24. Object Construction with Arguments
The syntax to declare an object using a constructor with
arguments is
ClassName objectName(arguments);
For example, the following declaration creates an object
named circle1 by invoking the Circle class’s constructor
with a specified radius 5.5.
Circle circle1(5.5);
25. A Simple Program – Constructor with Arguments
class Circle
{
private:
double radius;
public:
Circle(double rad)
{ radius = rad; }
double getArea()
{ return radius * radius * 3.14159; }
};
Object InstanceC1
: C1
radius: 9.0
void main()
{
Circle C1(9.0);
//C1.radius = 10; can’t access private member outside the class
cout<<“Area of circle = “<<C1.getArea();
}
Allocate memory
for radius
26. Output of the following Program?
class Circle
{
private:
double radius;
public:
Circle(double rad)
{ radius = rad; }
double getArea()
{ return radius * radius * 3.14159; }
};
void main()
{
Circle C1;
cout<<“Area of circle = “<<C1.getArea();
}
27. Constructor Overloading
class Circle
{
private:
double radius;
public:
Circle ()
{ radius = 1; }
Circle(double rad)
{ radius = rad; }
double getArea()
{ return radius * radius * 3.14159; }
};
void main()
{
Circle C2(8.0);
Circle C1;
cout<<“Area of circle = “<<C1.getArea();
}
28. The this Pointer
class Circle
{
private:
double radius;
public:
Circle(double radius)
{ this->radius = radius; }
double getArea()
{ return radius * radius * 3.14159; }
};
void main()
{
Circle C1(99.0);
cout<<“Area of circle = “<<C1.getArea();
}
29. The this Pointer
this is keyword, which is a special built-in pointer that
references to the calling object.
The this pointer is passed as a hidden argument to all
nonstatic member function calls and is available as a
local variable within the body of all nonstatic functions.
Can be used to access instance variables within
constructors and member functions
30. Exercise
Design a class named Account that contains:
A private int data field named id for the account (default 0)
A private double data field balance for the account (default 0)
A private double data field named annualInterestRate that stores
the current interest rate (default 0).
A no-arg constructor that creates a default account.
A constructor that creates an account with the specified id, initial
balance, and annual interest rate.
A function named getAnnualInterestRate() that returns the annual
interest rate.
A function named withdraw that withdraws a specified amount
from the account.
A function named deposit that deposits a specified amount to the
account.
A function named show to print all attribute values
Implement the class. Write a test program that creates an Account
object with an account ID of 1122, a balance of $20,000, and an
annual interest rate of 4.5%. Use the withdraw method to
withdraw $2,500, use the deposit method to deposit $3,000, and
print the balance, the Annual interest, and the date when this
account was created.
31. (Algebra: quadratic equations) Design a class named QuadraticEquation
for a quadratic equation. The class contains:
Private data fields a, b, and c that represents three coefficients.
A constructor for the arguments of a, b, and c.
A function named getDiscriminant() that returns the discriminant, which
is b2 – 4ac
The functions named getRoot1() and getRoot2() for returning two roots
of the equation
Implement the class. Write a test program that prompts the user to
enter values for a, b, and c and displays the result based on the
discriminant. If the discriminant is positive, display the two roots. If the
discriminant is 0, display the one root. Otherwise, display “The equation
has no roots”.
Exercise