This document discusses object-oriented programming (OOP) concepts like classes, objects, encapsulation, inheritance, and polymorphism. It explains that OOP improves code reusability, modularity, and maintenance by encapsulating data and methods together as objects. Some benefits of OOP include improved communication, seamless design to implementation, and code reuse through inheritance. Potential drawbacks include increased complexity, overhead from derived classes implementing base class functionality, and a high learning curve.
A presentation on core java. in this ppt there are all the basic informations on the core java suvh as-
Features of Java
Java Program Translation
Java Virtual Machine
Java system overview
Java Program-Development phase
Advantage of java
Disadvantage of java
Project
A presentation on core java. in this ppt there are all the basic informations on the core java suvh as-
Features of Java
Java Program Translation
Java Virtual Machine
Java system overview
Java Program-Development phase
Advantage of java
Disadvantage of java
Project
oops concept in java | object oriented programming in javaCPD INDIA
object oriented programming is a key concept for the development of application in windows as well as web based application environment. oops concept maps real world through its concept of classes, objects, inheritance, polymorphism which help in making a robust application.
it describes the main concepts of object oriented programming
For more posts : http://comsciguide.blogspot.com/
For full playlist of Interview puzzles videos : https://www.youtube.com/playlist?list=PL3v9ipJOEEPfI4zt4ExamGJwndkvg0SFc
24 standard interview puzzles: https://www.youtube.com/playlist?list=PL3v9ipJOEEPefIF4nscYOobim1iRBJTjw
Aptitude training playlist link : https://www.youtube.com/playlist?list=PL3v9ipJOEEPfumKHa02HWjCfPvGQiPZiG
for C and C++ questions, that are asked in the interviews, go through the posts in the link : http://comsciguide.blogspot.com/
for more videos, my youtube channel : https://www.youtube.com/channel/UCvMy2V7gYW7VR2WgyvLj3-A
oops concept in java | object oriented programming in javaCPD INDIA
object oriented programming is a key concept for the development of application in windows as well as web based application environment. oops concept maps real world through its concept of classes, objects, inheritance, polymorphism which help in making a robust application.
it describes the main concepts of object oriented programming
For more posts : http://comsciguide.blogspot.com/
For full playlist of Interview puzzles videos : https://www.youtube.com/playlist?list=PL3v9ipJOEEPfI4zt4ExamGJwndkvg0SFc
24 standard interview puzzles: https://www.youtube.com/playlist?list=PL3v9ipJOEEPefIF4nscYOobim1iRBJTjw
Aptitude training playlist link : https://www.youtube.com/playlist?list=PL3v9ipJOEEPfumKHa02HWjCfPvGQiPZiG
for C and C++ questions, that are asked in the interviews, go through the posts in the link : http://comsciguide.blogspot.com/
for more videos, my youtube channel : https://www.youtube.com/channel/UCvMy2V7gYW7VR2WgyvLj3-A
Introduction to C++ : Object Oriented Technology, Advantages of OOP, Input- output in
C++, Tokens, Keywords, Identifiers, Data Types C++, Derives data types. The void data
type, Type Modifiers, Typecasting, Constant
Procedural Vs Object Oriented Programming
Procedural Programming
Can be defined as a programming model which is derived from structured programming,
based upon the concept of calling procedure. In these models, a programmer uses procedures
or functions to perform a task.
Languages used in Procedural Programming: C , Pascal , Fortan etc.
Object Oriented Programming can be defined as a programming model which is based
upon the concept of objects. Objects contain data in the form of attributes and code in the
form of methods. OOP concept uses variables and methods as procedural programs do, but it
focuses on the objects that contain variables and methods
Languages used in Object Oriented Programming:
Java, C++, C#, Python , Ruby
09/08/2022 3
Object-Oriented Programming (OOP)
Object Oriented programming (OOP) is a programming paradigm that relies on the
concept of classes and objects. It is used to structure a software program into simple,
reusable pieces of code blueprints (usually called classes), which are used to create individual
instances of objects.
It is a programming paradigm that structures a software program according to objects.
Simply put, it creates objects that contain functions and data. This paradigm relies
greatly on the concept of classes and objects.
The main aim of OOP is to bind together the data and the functions that operate on them so
that no other part of the code can access this data except that function.
09/08/2022 4
Object And Class
Class:A class is basically user-defined data types that act as a
template for creating objects of the identical type. It represents
the common properties and actions (functions) of an object.
Object: A real-world entity that has state and behavior. Here,
state represents properties and behavior represents actions and
functionality. For example, a person, chair, pen, table, etc
Object takes space in the memory but
class does not take any space in the
memory. Class does not exist physically
but an object exists physically.
09/08/2022 5
OOP Principles
Encapsulation: the attributes of an entity are enclosed in itself. In other words, encapsulation
is when an object (inside a class) keeps its state private and only exposes the selected
information.This principle requires the ability to define some fields as either private or public.
Abstraction: hide important information in order to reduce complexity. It is when the user
only interacts with specific object’s methods and/or attributes. By hiding complex details from
the user, abstraction consequently reduces complexity.
09/08/2022 6
OOP Principles
Inheritance: as the name indicates, an entity can inherit attributes from other entities. More
precisely, parent classes can extend their attributes and behaviors to child classes, which also
means that this principle supports reusability.
Polymorphism: entities can have more than one form. Hence the ‘poly’. In sum,
polymorphism is when objects are designed to share behaviors. By overriding
Intro to JAVA
Basics of Oops
Features of Oops
Applications of Oops
How to create a JAVA program
How to Edit a Java Program
Compiling a Java program
Java Class file
Run or Executing a Java program
Command line arguments
Definition of virtualization, Reason for using virtualization, Adopting virtualization, Types of virtualization, Server virtualization, Storage virtualization, Network virtualization, Virtualization clustering, Grid, Cloud& Virtualization,
Cloud computing technology, life cycle model of cloud computing, Phases of CDLC, Role of cloud modelling and architecture, Reference model for cloud computing, Cloud architecture,Cloud computing logical architecture, Cloud computing model and design,Cloud system architecture, Cloud system architecture, Developing holistic cloud computing reference model, Cloud unified process
How to Create Map Views in the Odoo 17 ERPCeline George
The map views are useful for providing a geographical representation of data. They allow users to visualize and analyze the data in a more intuitive manner.
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
This presentation provides a briefing on how to upload submissions and documents in Google Classroom. It was prepared as part of an orientation for new Sainik School in-service teacher trainees. As a training officer, my goal is to ensure that you are comfortable and proficient with this essential tool for managing assignments and fostering student engagement.
Model Attribute Check Company Auto PropertyCeline George
In Odoo, the multi-company feature allows you to manage multiple companies within a single Odoo database instance. Each company can have its own configurations while still sharing common resources such as products, customers, and suppliers.
How to Split Bills in the Odoo 17 POS ModuleCeline George
Bills have a main role in point of sale procedure. It will help to track sales, handling payments and giving receipts to customers. Bill splitting also has an important role in POS. For example, If some friends come together for dinner and if they want to divide the bill then it is possible by POS bill splitting. This slide will show how to split bills in odoo 17 POS.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
The Roman Empire A Historical Colossus.pdfkaushalkr1407
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesar’s dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empire’s birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empire’s society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxEduSkills OECD
Andreas Schleicher presents at the OECD webinar ‘Digital devices in schools: detrimental distraction or secret to success?’ on 27 May 2024. The presentation was based on findings from PISA 2022 results and the webinar helped launch the PISA in Focus ‘Managing screen time: How to protect and equip students against distraction’ https://www.oecd-ilibrary.org/education/managing-screen-time_7c225af4-en and the OECD Education Policy Perspective ‘Students, digital devices and success’ can be found here - https://oe.cd/il/5yV
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
2. JAVA - A general purpose, high-
level, object-oriented, cross-
platform programming language developed
by James Gosling at Sun Microsystems in
1995.
In structured programming, a complex
program is broken into sets of smaller,
understandable tasks; but it is very hard to
maintain.
3. Introduction to oop
◦ A procedure is defined as a collection of
instruction executed in sequential order.
Oops concept was introduced by Xerox
Corporation in early 1970s.
The first object oriented language was
Smalltalk.
Oops languages: C++,Java and Eiffel.
4. Objects and Classes are building blocks of
OOP.
Object is a Programming entity in OOP.
◦ It has data components representing the present
state of the object as well as functions also called
methods.
Object contains
◦ Attributes- data associated with the object
◦ Methods-functions and code which operate on the
data
5. Class is a model or pattern from which an
object is created.
Class is a special module that defines an
object.
◦ The process of creating an object from a class is
called instantiation.
◦ Every object is an instance of a particular class
6. There are 3 main characteristics
Encapsulation
•Abstraction via
encapsulation
•Data hiding
Inheritance
•Single
•multiple
Polymorphism
•Operator overloading
•Function overloading
7. Encapsulation-The concept of sealing data and methods
that operate on the data into an object(a single unit) .
Abstraction via encapsulation
data hiding
Abstraction via encapsulation
Software object is an abstrat entity in that we view it
from outside. Without concerning oueselves with
detail of how it work on the inside.
E.g Car and its gear.
Dividing a program into modules is called
modularity. Not having to know the internal
implementation of a module is called abstraction
8. Data hiding
◦ Encapsulation provide the hiding of data
information.
◦ It prevent user from seeing the internal working of
an object.
◦ This is used to protect data, that should not be
manipulated by the user.
◦ Every class can hide some of the part, every
element (field or method) of one class can have one
of the three level of visibility.
◦ They are
Public
Private and
protected
9. Public elements are completely visible from
outside the class. They form the interface
with the outside world
Private elements are visible only to methods
of the class itself.
Protected elements are something between
public and private.
◦ (act as private elements, but they are completely
visible to inherited child classes)
10. Benefits of encapsulation
◦ Improves program reliability
◦ Reduces maintenance
◦ Lends usability
◦ Facilitates information hiding
◦ Improves modularity
◦ Makes coding easier
12. Advantages of using inheritance :
◦ Increased productivity
◦ Reduced maintenance
◦ Standardization
The major drawback of inheritance is added overhead.
An user must know changes in the methods of base class before using the
derived classobjects.
Though the derived class objects may not require all the functionalities of
a base class,the derived class implements all the methods of base class.
This increases the amount ofmemory required for execution of the
program.
Since common functionalities exist in the base class, there is an execution
overhead forderived class due to the implementation of base class
methods when compared to havingthe functionalities in a single class
itself. In the case of a chain of inheritances, the executionOverhead may
increase further.
13. Allows an entity to take a variety of
representations
◦ Operator overloading
Is the ability to use an operator on different argument
types e.g operator ‘+’ is used to add either integers or
floating point numbers.(for adding two nos and
concatenation of two strings)
Java does not support user-defined operator
overloading.
14. Function overloading
◦ -is the ability to access different implementations
of functions using the same name.
◦ E.g
printdate(String Str) {……}
//ans: August 3,2020
Printdate(int dd,int mm, int yyyy) {…..}
//ans:3,8,2020
15. Two types of function overloading
◦ Early binding
Allows us to have two functions in the same class that
have the same name with different parameters and
different datatypes passed to it.
E.g add(int a, int b)
add(int a, int b, float c)
Early binding takes place during compile time.
◦ Late binding
16. Late binding
◦ Allows us to have functions with same name in base
and derived classes. But the derived class function
will override the base class function.
Base class functions draw()
Derived function fill()
18. In classical procedural (or structural) programming, there are techniques to
write a code that handles some general task
The most important techniques of that kind are functions (proceduresor sub-
routines). The large program is partitioned into functions that each perform a
specifictask.
The main program calls these functions, which in turn may call other
functions. The majorconcern of this programming is with respect to the data.
Data are passed around from one non-member function to another and are
available everywhere throughout the large program.
This allows the user to access the data directly, alter it from several points in
the program and inadvertently introduce mistakes. If one
programmerchanges the representation of the data in the computer's
memory by rearranging fields withina structure (record), other functions in
the program may need to be rewritten and must then beretested to account
for this change. That means the data are not well protected in
procedureoriented programming. Though local variables in a function can be
accessed within the function,they are not useful if they must be accessed by
different functions.
19. In contrast, OOP safely encapsulates
collections of functions (called methods)
with the data they manipulate.
The data can only be manipulated by its
own functions.
This feature protects the data from rest of
the program.Though the concepts of object
oriented programming are different from
procedural oriented programming,
structured programming constructs are still
used in OOP especially in the codingof
methods.
20. Code reusability
Code modularity
Easier maintenance
Design stability
Improved communication between developers
and users
Seamless transition from design to
implementation
21. Execution overhead-derived classes can be
very complex because of inheritance and
polymorphism
◦ Once a derived class is initiated all the data and
functions from the base classes are carried along
with it.some of these , or even most of it may not
be used
Abstraction may lead to performance
degradation
22. High learning curve
◦ OOP is different from traditional programming.
◦ We must develop strong base classes and
understand the functionality of class libraries
before take advantages from it.
Difficulty in establishing base classes
◦ Good foundation must be created before derive
other classes.