SlideShare a Scribd company logo
1 of 3
Download to read offline
1) What are the differences between TypeOf() and GetType()?

  S.N   TypeOf()                           GetType()
  o
  1     Its an operator                    Its a method
  2     Can't be overloaded                Has lot of overloads


2) What are the differences between const and readonly?

  S.N   const                              readonly
  o
  1     It cannot be static                It can be instance level or static
  2     It is evaluated at design time     It is evaluated at run time
  3     It is initialized at declaration   It is initialized at declaration and in
                                           constructor
  4     It must be of integral type or     In addition, it can have complex
        enumeration                        types with new keyword and
                                           enumerations are not allowed


3) What are the Differences between Abstract Class and Interface?

  S.N   Abstract Class                     Interface
  o
  1     It can have implemented            It cannot have implemented
        Methods                            Methods
  2     A class can inherit only one       A Class can implement any number
        abstract class                     of Interfaces
  3     We go for Abstract classes on      We go for Interface on such
        such situations where we need      situations where we need to give
        to give common functionality for   common functionality for group of
        group of related classes           un-related classes
  4     If we add a new method, then       If we add a new method, then we
        we can provide a default           need to change all the existing work
        implementation and so no need
        to make any change to existing
        work
  5     Static and Instance constants      Only Static constants are possible
        are possible




4) What are the differences between Structure and Class?

  S.N   Structure                          Class
  o
  1     It is value type                   It is reference type
  2     It is stored on stack              It is stored on heap
3    It does not support inheritance It supports inheritance
   4    It is suitable for small data   It is suitable for complex data
        structure                       structures
5) What are the differences between property and indexer?

   S.N   Property                         Indexer
   o
   1     A property can be static         An indexer is always an instant
         member                           member
   2     The get accessor of a property   The get accessor of an indexer
         corresponds to a method with     corresponds to the same formal
         no parameters                    parameter lists as the indexer


6) What are the differences between overloading and overriding?

   S.N   Overloading                      Overriding
   o
   1    Same name in same / derived        We need to provide different
        class but with different / type of implementation than base class
        parameter
   2    Has different signature            Has same signature
   3    Otherwise called Compile-time      Otherwise called Run-time
        Polymorphism                       Polymorphism
7) What is the difference between Write() and WriteLine() methods?

   S.N   Write()                          WriteLine()
   o
   1     Write() method outputs one or    WriteLine() method outputs one or
         more values to the screen        more values to the screen with a
         without a newline character      newline character


8) What is the difference between Read() and ReadLine() methods?

   S.N   Read()                           ReadLine()
   o
   1     Read() method returns a single   ReadLine() method returns a string
         character as int                 containing a line of text




9) What is the difference between ref and out parameters?

   S.N   Ref parameter                    Out parameter
   o
   1     An argument passed to a ref      An argument passed to an output
         parameter must be first          parameter does not need to be
         initialized                      explicitly initialized
10)     What are the differences between Value Types and Reference
   Types?

  S.N   Value Types                        Reference Types
  o
  1     It is stored on stack              It is stored on heap
  2     It can be accessed directly        It can be accessed through
                                           references
  3     Life time of value type is         Lifetime of reference type is
        determined by lifetime of          managed by .net framework
        variable that contain them
  4     Examples: All numeric data         Examples: All arrays, String, Class
        type, Boolean, char, Date,         types, Delegate
        Structure, enumerations


  Note: Object is not any kind of type. You can create object of structure as
  well as Class

  Are not type: Namespaces, Modules, Events, properties, procedures,
  variables, constants, & fields.

More Related Content

What's hot

Java interview questions and answers
Java interview questions and answersJava interview questions and answers
Java interview questions and answersMadhavendra Dutt
 
Object Oriented Principles
Object Oriented PrinciplesObject Oriented Principles
Object Oriented PrinciplesSujit Majety
 
Method Overloading in Java
Method Overloading in JavaMethod Overloading in Java
Method Overloading in JavaDelowar Hossain
 
OOP - Polymorphism
OOP - PolymorphismOOP - Polymorphism
OOP - PolymorphismMudasir Qazi
 
Doppl development iteration #2
Doppl development   iteration #2Doppl development   iteration #2
Doppl development iteration #2Diego Perini
 
Polymorphism in Python
Polymorphism in Python Polymorphism in Python
Polymorphism in Python Home
 
L2 datatypes and variables
L2 datatypes and variablesL2 datatypes and variables
L2 datatypes and variablesRavi_Kant_Sahu
 
Object Oriented Programing JAVA presentaion
Object Oriented Programing JAVA presentaionObject Oriented Programing JAVA presentaion
Object Oriented Programing JAVA presentaionPritom Chaki
 
OOP in C#
OOP in C#OOP in C#
OOP in C#DevMix
 
Complete java&j2ee
Complete java&j2eeComplete java&j2ee
Complete java&j2eeShiva Cse
 

What's hot (18)

Java interview questions and answers
Java interview questions and answersJava interview questions and answers
Java interview questions and answers
 
Object Oriented Principles
Object Oriented PrinciplesObject Oriented Principles
Object Oriented Principles
 
Method Overloading in Java
Method Overloading in JavaMethod Overloading in Java
Method Overloading in Java
 
OOP - Polymorphism
OOP - PolymorphismOOP - Polymorphism
OOP - Polymorphism
 
Polymorphism in oop
Polymorphism in oopPolymorphism in oop
Polymorphism in oop
 
Unusual C# - OOP
Unusual C# - OOPUnusual C# - OOP
Unusual C# - OOP
 
Doppl development iteration #2
Doppl development   iteration #2Doppl development   iteration #2
Doppl development iteration #2
 
Polymorphism in Python
Polymorphism in Python Polymorphism in Python
Polymorphism in Python
 
L2 datatypes and variables
L2 datatypes and variablesL2 datatypes and variables
L2 datatypes and variables
 
C# interview questions
C# interview questionsC# interview questions
C# interview questions
 
javainterface
javainterfacejavainterface
javainterface
 
Abstract class in java
Abstract class in javaAbstract class in java
Abstract class in java
 
Answer key1fer
Answer key1ferAnswer key1fer
Answer key1fer
 
Java interview questions
Java interview questionsJava interview questions
Java interview questions
 
Object Oriented Programing JAVA presentaion
Object Oriented Programing JAVA presentaionObject Oriented Programing JAVA presentaion
Object Oriented Programing JAVA presentaion
 
Javapolymorphism
JavapolymorphismJavapolymorphism
Javapolymorphism
 
OOP in C#
OOP in C#OOP in C#
OOP in C#
 
Complete java&j2ee
Complete java&j2eeComplete java&j2ee
Complete java&j2ee
 

Viewers also liked

App prizes value deck for stickrun
App prizes value deck  for stickrunApp prizes value deck  for stickrun
App prizes value deck for stickrunAppPrizes Inc
 
Interview preparation techniques
Interview preparation techniquesInterview preparation techniques
Interview preparation techniquesUmar Ali
 
AppPrizes - Value Proposition Deck for Social Point Inc
AppPrizes - Value Proposition Deck for Social Point Inc AppPrizes - Value Proposition Deck for Social Point Inc
AppPrizes - Value Proposition Deck for Social Point Inc AppPrizes Inc
 
App prizes value prop deck
App prizes  value prop deckApp prizes  value prop deck
App prizes value prop deckAppPrizes Inc
 
Islamic knowledge in tamil-1
Islamic knowledge in tamil-1Islamic knowledge in tamil-1
Islamic knowledge in tamil-1Umar Ali
 
Twas The Night Before Christmas
Twas The Night Before ChristmasTwas The Night Before Christmas
Twas The Night Before Christmasdelta0ne
 
Twas The Night Before Christmas
Twas The Night Before ChristmasTwas The Night Before Christmas
Twas The Night Before Christmasdelta0ne
 
Asp.Net Abbreviations
Asp.Net AbbreviationsAsp.Net Abbreviations
Asp.Net AbbreviationsUmar Ali
 
OOPs difference faqs- 4
OOPs difference faqs- 4OOPs difference faqs- 4
OOPs difference faqs- 4Umar Ali
 
Difference between rdf, odata and gdata
Difference between rdf, odata and gdataDifference between rdf, odata and gdata
Difference between rdf, odata and gdataUmar Ali
 
Difference between ajax and silverlight
Difference between ajax and silverlightDifference between ajax and silverlight
Difference between ajax and silverlightUmar Ali
 
Weak hadiths in tamil
Weak hadiths in tamilWeak hadiths in tamil
Weak hadiths in tamilUmar Ali
 

Viewers also liked (12)

App prizes value deck for stickrun
App prizes value deck  for stickrunApp prizes value deck  for stickrun
App prizes value deck for stickrun
 
Interview preparation techniques
Interview preparation techniquesInterview preparation techniques
Interview preparation techniques
 
AppPrizes - Value Proposition Deck for Social Point Inc
AppPrizes - Value Proposition Deck for Social Point Inc AppPrizes - Value Proposition Deck for Social Point Inc
AppPrizes - Value Proposition Deck for Social Point Inc
 
App prizes value prop deck
App prizes  value prop deckApp prizes  value prop deck
App prizes value prop deck
 
Islamic knowledge in tamil-1
Islamic knowledge in tamil-1Islamic knowledge in tamil-1
Islamic knowledge in tamil-1
 
Twas The Night Before Christmas
Twas The Night Before ChristmasTwas The Night Before Christmas
Twas The Night Before Christmas
 
Twas The Night Before Christmas
Twas The Night Before ChristmasTwas The Night Before Christmas
Twas The Night Before Christmas
 
Asp.Net Abbreviations
Asp.Net AbbreviationsAsp.Net Abbreviations
Asp.Net Abbreviations
 
OOPs difference faqs- 4
OOPs difference faqs- 4OOPs difference faqs- 4
OOPs difference faqs- 4
 
Difference between rdf, odata and gdata
Difference between rdf, odata and gdataDifference between rdf, odata and gdata
Difference between rdf, odata and gdata
 
Difference between ajax and silverlight
Difference between ajax and silverlightDifference between ajax and silverlight
Difference between ajax and silverlight
 
Weak hadiths in tamil
Weak hadiths in tamilWeak hadiths in tamil
Weak hadiths in tamil
 

Similar to OOPs Difference FAQs

Similar to OOPs Difference FAQs (20)

Intervies
InterviesIntervies
Intervies
 
Interview Questions and Answers for Java
Interview Questions and Answers for JavaInterview Questions and Answers for Java
Interview Questions and Answers for Java
 
C language 100 questions answers
C language 100 questions answersC language 100 questions answers
C language 100 questions answers
 
Interfaces
InterfacesInterfaces
Interfaces
 
Core java interview faq
Core java interview faqCore java interview faq
Core java interview faq
 
Day3
Day3Day3
Day3
 
EEE oops Vth semester viva questions with answer
EEE oops Vth semester viva questions with answerEEE oops Vth semester viva questions with answer
EEE oops Vth semester viva questions with answer
 
CORBA IDL
CORBA IDLCORBA IDL
CORBA IDL
 
what is differance between abstract class and interface ppt
what is differance between abstract class and interface pptwhat is differance between abstract class and interface ppt
what is differance between abstract class and interface ppt
 
Core java questions
Core java questionsCore java questions
Core java questions
 
Core java questions
Core java questionsCore java questions
Core java questions
 
Asp.net main
Asp.net mainAsp.net main
Asp.net main
 
Faqs in java
Faqs in javaFaqs in java
Faqs in java
 
Core_Java_Interview.pdf
Core_Java_Interview.pdfCore_Java_Interview.pdf
Core_Java_Interview.pdf
 
Javainterview
JavainterviewJavainterview
Javainterview
 
Core java interview questions1
Core java interview questions1Core java interview questions1
Core java interview questions1
 
Java Basics
Java BasicsJava Basics
Java Basics
 
Java J2EE Interview Questions Part-1
Java J2EE Interview Questions Part-1Java J2EE Interview Questions Part-1
Java J2EE Interview Questions Part-1
 
Java J2EE Interview Questions Part-1
Java J2EE Interview Questions Part-1Java J2EE Interview Questions Part-1
Java J2EE Interview Questions Part-1
 
Java Notes
Java NotesJava Notes
Java Notes
 

More from Umar Ali

Difference between wcf and asp.net web api
Difference between wcf and asp.net web apiDifference between wcf and asp.net web api
Difference between wcf and asp.net web apiUmar Ali
 
Difference between ActionResult() and ViewResult()
Difference between ActionResult() and ViewResult()Difference between ActionResult() and ViewResult()
Difference between ActionResult() and ViewResult()Umar Ali
 
Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4Umar Ali
 
Difference between asp.net web api and asp.net mvc
Difference between asp.net web api and asp.net mvcDifference between asp.net web api and asp.net mvc
Difference between asp.net web api and asp.net mvcUmar Ali
 
Difference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvcDifference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvcUmar Ali
 
ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1Umar Ali
 
Link checkers 1
Link checkers 1Link checkers 1
Link checkers 1Umar Ali
 
Affiliate Networks Sites-1
Affiliate Networks Sites-1Affiliate Networks Sites-1
Affiliate Networks Sites-1Umar Ali
 
Technical Video Training Sites- 1
Technical Video Training Sites- 1Technical Video Training Sites- 1
Technical Video Training Sites- 1Umar Ali
 
US News Sites- 1
US News Sites- 1 US News Sites- 1
US News Sites- 1 Umar Ali
 
How to create user friendly file hosting link sites
How to create user friendly file hosting link sitesHow to create user friendly file hosting link sites
How to create user friendly file hosting link sitesUmar Ali
 
Bulughul Maram in tamil
Bulughul Maram in tamilBulughul Maram in tamil
Bulughul Maram in tamilUmar Ali
 
Asp.net website usage and job trends
Asp.net website usage and job trendsAsp.net website usage and job trends
Asp.net website usage and job trendsUmar Ali
 
Indian news sites- 1
Indian news sites- 1 Indian news sites- 1
Indian news sites- 1 Umar Ali
 
Photo sharing sites- 1
Photo sharing sites- 1 Photo sharing sites- 1
Photo sharing sites- 1 Umar Ali
 
File hosting search engines
File hosting search enginesFile hosting search engines
File hosting search enginesUmar Ali
 
Ajax difference faqs compiled- 1
Ajax difference  faqs compiled- 1Ajax difference  faqs compiled- 1
Ajax difference faqs compiled- 1Umar Ali
 
ADO.NET difference faqs compiled- 1
ADO.NET difference  faqs compiled- 1ADO.NET difference  faqs compiled- 1
ADO.NET difference faqs compiled- 1Umar Ali
 
Dotnet differences compiled -1
Dotnet differences compiled -1Dotnet differences compiled -1
Dotnet differences compiled -1Umar Ali
 
.NET Differences List
.NET Differences List.NET Differences List
.NET Differences ListUmar Ali
 

More from Umar Ali (20)

Difference between wcf and asp.net web api
Difference between wcf and asp.net web apiDifference between wcf and asp.net web api
Difference between wcf and asp.net web api
 
Difference between ActionResult() and ViewResult()
Difference between ActionResult() and ViewResult()Difference between ActionResult() and ViewResult()
Difference between ActionResult() and ViewResult()
 
Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4
 
Difference between asp.net web api and asp.net mvc
Difference between asp.net web api and asp.net mvcDifference between asp.net web api and asp.net mvc
Difference between asp.net web api and asp.net mvc
 
Difference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvcDifference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvc
 
ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1
 
Link checkers 1
Link checkers 1Link checkers 1
Link checkers 1
 
Affiliate Networks Sites-1
Affiliate Networks Sites-1Affiliate Networks Sites-1
Affiliate Networks Sites-1
 
Technical Video Training Sites- 1
Technical Video Training Sites- 1Technical Video Training Sites- 1
Technical Video Training Sites- 1
 
US News Sites- 1
US News Sites- 1 US News Sites- 1
US News Sites- 1
 
How to create user friendly file hosting link sites
How to create user friendly file hosting link sitesHow to create user friendly file hosting link sites
How to create user friendly file hosting link sites
 
Bulughul Maram in tamil
Bulughul Maram in tamilBulughul Maram in tamil
Bulughul Maram in tamil
 
Asp.net website usage and job trends
Asp.net website usage and job trendsAsp.net website usage and job trends
Asp.net website usage and job trends
 
Indian news sites- 1
Indian news sites- 1 Indian news sites- 1
Indian news sites- 1
 
Photo sharing sites- 1
Photo sharing sites- 1 Photo sharing sites- 1
Photo sharing sites- 1
 
File hosting search engines
File hosting search enginesFile hosting search engines
File hosting search engines
 
Ajax difference faqs compiled- 1
Ajax difference  faqs compiled- 1Ajax difference  faqs compiled- 1
Ajax difference faqs compiled- 1
 
ADO.NET difference faqs compiled- 1
ADO.NET difference  faqs compiled- 1ADO.NET difference  faqs compiled- 1
ADO.NET difference faqs compiled- 1
 
Dotnet differences compiled -1
Dotnet differences compiled -1Dotnet differences compiled -1
Dotnet differences compiled -1
 
.NET Differences List
.NET Differences List.NET Differences List
.NET Differences List
 

Recently uploaded

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 

Recently uploaded (20)

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 

OOPs Difference FAQs

  • 1. 1) What are the differences between TypeOf() and GetType()? S.N TypeOf() GetType() o 1 Its an operator Its a method 2 Can't be overloaded Has lot of overloads 2) What are the differences between const and readonly? S.N const readonly o 1 It cannot be static It can be instance level or static 2 It is evaluated at design time It is evaluated at run time 3 It is initialized at declaration It is initialized at declaration and in constructor 4 It must be of integral type or In addition, it can have complex enumeration types with new keyword and enumerations are not allowed 3) What are the Differences between Abstract Class and Interface? S.N Abstract Class Interface o 1 It can have implemented It cannot have implemented Methods Methods 2 A class can inherit only one A Class can implement any number abstract class of Interfaces 3 We go for Abstract classes on We go for Interface on such such situations where we need situations where we need to give to give common functionality for common functionality for group of group of related classes un-related classes 4 If we add a new method, then If we add a new method, then we we can provide a default need to change all the existing work implementation and so no need to make any change to existing work 5 Static and Instance constants Only Static constants are possible are possible 4) What are the differences between Structure and Class? S.N Structure Class o 1 It is value type It is reference type 2 It is stored on stack It is stored on heap
  • 2. 3 It does not support inheritance It supports inheritance 4 It is suitable for small data It is suitable for complex data structure structures 5) What are the differences between property and indexer? S.N Property Indexer o 1 A property can be static An indexer is always an instant member member 2 The get accessor of a property The get accessor of an indexer corresponds to a method with corresponds to the same formal no parameters parameter lists as the indexer 6) What are the differences between overloading and overriding? S.N Overloading Overriding o 1 Same name in same / derived We need to provide different class but with different / type of implementation than base class parameter 2 Has different signature Has same signature 3 Otherwise called Compile-time Otherwise called Run-time Polymorphism Polymorphism 7) What is the difference between Write() and WriteLine() methods? S.N Write() WriteLine() o 1 Write() method outputs one or WriteLine() method outputs one or more values to the screen more values to the screen with a without a newline character newline character 8) What is the difference between Read() and ReadLine() methods? S.N Read() ReadLine() o 1 Read() method returns a single ReadLine() method returns a string character as int containing a line of text 9) What is the difference between ref and out parameters? S.N Ref parameter Out parameter o 1 An argument passed to a ref An argument passed to an output parameter must be first parameter does not need to be initialized explicitly initialized
  • 3. 10) What are the differences between Value Types and Reference Types? S.N Value Types Reference Types o 1 It is stored on stack It is stored on heap 2 It can be accessed directly It can be accessed through references 3 Life time of value type is Lifetime of reference type is determined by lifetime of managed by .net framework variable that contain them 4 Examples: All numeric data Examples: All arrays, String, Class type, Boolean, char, Date, types, Delegate Structure, enumerations Note: Object is not any kind of type. You can create object of structure as well as Class Are not type: Namespaces, Modules, Events, properties, procedures, variables, constants, & fields.