20cs204 Class 1 Pp-II
20cs204 Class 1 Pp-II
20CS204
Programming Paradigms - II
CLASS I
Date:28.07.2021
G.NARENDRAN
ASSISTANT PROFESSOR ,Dept of CSE
Teaching Experience : 6.6 Years in SREC
I have completed my Post Graduation in M.E (CSE) from
About Me Government College Technology in 2014 and Under graduation in
B.E (CSE) from Gnanamani College of Technology. I have
completed Three Consultancy Projects Craftsman Automation
Pvt, Ltd with 5.85 Lakhs, SNR Trust with 1 Lakh, Inovark
Technology with 83 Thousand and Two Ongoing Projects with
Roots Industries, L & T Technology. I have Filed Patent No.
201941006006 in the name of “Trolley Tracking using Wi-Fi”.
Mail id: [email protected]
Ph.no: 9629623920
COURSE OUTCOMES
On successful completion of the course, students will be able to
JAVA 8
Features of Java – Comparison of C, C++ with Java - Java Architecture- JDK,
MODULE II
Total Periods: 45
GUI programming, JDBC, Collections framework, Wrapper class 10
MODULE V
Total Periods: 45
REFERENCES
TEXT BOOKS
1. Herbert Schildt, “C++: The Complete Reference”, 5th Edition, Tata McGraw-Hill,2012.
2. Herbert Schildt, “The Complete Reference Java”, 9th Edition, Tata McGraw-Hill, 2016.
REFERENCES
1. E. Balaguruswamy, “Object Oriented Programming with C++”, 6th Edition, Tata McGraw-Hill,
2013
2. E. Balaguruswamy, “Programming with Java”, 4thEdition, Tata McGraw-Hill, 2007
3. Deitel H M and Deitel P J, “JAVA - How to Program”, 7thEdition, Prentice Hall of India / Pearson
Education, 2007.
4. Steven Holzner et al, “Java 2 Programming”, Dream Tech Press, 2009.
5. Bernard Van Haecke, “JDBC 3 Java Database Connectivity”, Wiley-DreamTech Press India Pvt.
Ltd., Edition, 2002.
Type of Programming
C is a procedural language in which the program revolves around
the functions. The entire problem is broken down into numerous
functions. The main focus of the program is on functions or
procedures to get the things done.
In C++, the data is read from the standard input device using
‘cin’ while it is printed to the output device using ‘cout’.
Structures
Structures in C and C++ use the same concept. But the
difference is, in C, as we cannot include functions as
members.
In C we use functions like malloc (), calloc (), realloc (), etc.,
to allocate memory and free () function to free the memory.
But, in C++, we use new () and delete () operators to allocate
and deallocate the memory respectively.
Tabular format C vs C++
Tabular format C vs C++
Tabular format C vs C++
Tabular format C vs C++
History of C++ programming
Bjarne Stroustrup
Timeline of C++
History of C++
The C++ language is an object-oriented programming
language & is a combination of both low-level & high-level
language – a Middle-Level Language.
C++ was initially known as “C with classes was renamed C++ in
1983.
++ is shorthand for adding one to variety in programming;
therefore C++ roughly means that “one higher than C.”
What is OOP?
OOP stands for Object-Oriented Programming.
It allows users to create the objects that they want and then,
create methods to handle those objects. The basic concept of OOPs
is to create objects, re-use them throughout the program, and
manipulate these objects to get results
Core OOPS concepts
What is an Object?
Car, bike, truck these all are belongs to vehicle class. These
Objects have also different states and behaviors. For Example car
has state - color, name, model, speed, Mileage. as we;; as
behaviors - distance travel
Inheritance in C++
The real life example of inheritance is child and parents, all
the properties of father are inherited by his son
Polymorphism
Polymorphism is derived from 2 greek words: poly and morphs. The word
"poly" means many and morphs means forms. So polymorphism means
many forms.
Abstraction
Abstraction is the concept of exposing only the required essential
characteristics and behavior with respect to a context.