Documente Academic
Documente Profesional
Documente Cultură
Week 04
Usman Akbar
usman.akbar@superior.edu.pk
FB Group - SuperiorUniversity2016
Lecture Review
When you define a class, you define a blueprint for a data type.
Object of the class consists of and what operations can be performed on that
object.
Objects are instances of a class. The methods and variables that constitute a
class are called members of the class.
Encapsulation is defined 'as the process of enclosing one or more items within
a physical or logical package’.
Encapsulation, in object oriented programming methodology, prevents access
to implementation details.
Abstraction and encapsulation are related features in object oriented
programming. Abstraction allows making relevant information visible and
encapsulation enables a programmer to implement the desired level of
abstraction.
Public
Private
Protected
Only functions of the same class can access its private members.
Even an instance of a class cannot access its private members
Questions….?
References
C# 6 for Programmers
https://www.tutorialspoint.com/csharp
https://www.visualstudio.com