Unit 1: Introduction to C# Object Programming Flashcards
Object Oriented Programming definition.
OOP can be defined as a programming model which is based upon the concept of objects
Example OF Object Oriented Programming
Examples of an object, can range from physical entities: such as human beings who are described by properties( attributes)
like name and address, to small computer programs such as widgets.
What are classes?
Classes are user defined data types: that act as the blueprint for individual objects, attributes and methods.
What are Objects?
Objects are instances of a class created which specifically Define the data.
What are Methods?
Methods are functions that are defined inside a class that describe the behaviors of an object.
Each method contains in class definitions stored with a reference to an instance object.
Some cartoons contained in an object are called…..?
instance methods
What are Attributes?
Attributes represent the state of an object and are defined in the class template.
objects will have data stored in the……?
attribute field, class attributes belong to the class itself .
Methods control the…….
Movements or actions of the Object.
What is Abstraction?
Abstraction is a process where you show only” relevant” data and “ hide” unnecessary details of an object from the user.
What is Encapsulation?
Encapsulation is defined as a practice that bind data with the code that manipulates it and keeps the data and the code safe from external inheritance.
What is Inheritance?
Inheritance is the mechanism by which an object acquires the same( or all) properties of another object.
What is Polymorphism ?
Polymorphism is Ability to process objects differently based on their data type.
In other words objects can have the same name for two methods but their implementation may differ.
A visual representation Encapsulation is….?
data security
A visual representation Inheritance is….?
code reusability
A visual representation polymorphism is….?
code reusability
A visual representation abstraction is….?
hidden complexity
the object is found within…?
the class
You can use this features to withdraw the money but you never will know what exact actions are operation take place internally in the machine like after card swipe the machine check whether the card is valid or not then the pin will be verified if it is correct then only we can withdraw the money.
WHICH CONCEPT IS USED?
Abstraction
a watch you check the time many times in a day but you never need to know what the internal mechanisms of the watch is
WHICH CONCEPT IS USED?.
Abstraction