filmov
tv
Asp.Net C# Interview Question & answer||What is class?|| What is object?||What is structure? InC#

Показать описание
5 Questions
1.What is Class?
2.What is Structure?
3.What is an Object?
4.What is Field in c#?
5.What is Method in c# ?
1.What is Class?
-A class is like a blueprint of specific object.
A class defines the kinds of data and the functionality their objects will have.
A class enables you to create your own custom types by grouping together
variables of other types, methods and events.
2.What is Structure?
-A structure is a value type data type.
It helps you to make a single variable hold related data of various data types.
The struct keyword is used for creating a structure
3.What is an Object?
-An object is basically a block of memory that has been allocated and
configured according to the blueprint. A program may create many objects of
the same class. Objects are also called instances, and they can be stored in
either a named variable or in an array or collection
4.What is Field in c#?
-A field is a variable of any type that is declared directly in a class or struct.
Fields are members of their containing type. A class or struct may have instance fields or static fields or both.
5.What is Method in c# ?
-A method is a code block that contains a series of statements.
A program causes the statements to be executed by calling the method
and specifying any required method arguments. In C#, every executed
instruction is performed in the context of a method.
Link of Our previous video
Hope you enjoyed this video