Some Peoples don't know the basics they just want to know the basics clearly for these peoples this article is very helpful not only for these peoples for also for experience peoples because some times we are knowing all the subject but forget the basics." Pillers is the heart for house",like that basics are act like a heart for any programming languages.Here we are placing what is encapsulation and abstraction what is the object how to work the object and what is class the difference between class and object.
C#.net Questions and Answers:
C#.net basic Questions and answer |
*****Technical C#.net Questions*****
1.What is Encapsulation?
-->Encapsulation is a process of binding or grouping state and behaviour in a single container.
*****Technical C#.net Questions*****
2.What is Abstraction?
-->It is a process of getting required data and leaving unnecessary data.
*****Technical C#.net Questions*****
3.How to achieve Encapsulation?
-->By using Class
*****Technical C#.net Questions*****
4.What is class?
-->Class is user defined reference type datatype which consists of variables and methods.
*****Technical C#.net Questions*****
5.How to declare a Class?
-->class classname
{
variables
methods
}
*****Technical C#.net Questions*****
6.What is the use of Class?
-->Class is used to bind variables and methods in a single container.which is used to achieve Encapsulation.
*****Technical C#.net Questions*****
7.What is Object?
-->object is instance of a class.
Instance means allocating memory for instance Variables.
*****Technical C#.net Questions*****
8.What is use of object?
-->object is used to hold variables and methods temporarly.
*****Technical C#.net Questions*****
9.How to Create object?
-->new constructorname();
*****Technical C#.net Questions*****
10.What is difference b/w class and object?
-->class consists of variables and methods logically.
object consists of variables and methods physically.
*****Technical C#.net Questions*****
0 comments:
Post a Comment