SlideShare a Scribd company logo
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 answers
Madhavendra Dutt
 
Object Oriented Principles
Object Oriented PrinciplesObject Oriented Principles
Object Oriented Principles
Sujit Majety
 
Method Overloading in Java
Method Overloading in JavaMethod Overloading in Java
Method Overloading in Java
Delowar Hossain
 
OOP - Polymorphism
OOP - PolymorphismOOP - Polymorphism
OOP - Polymorphism
Mudasir Qazi
 
Polymorphism in oop
Polymorphism in oopPolymorphism in oop
Polymorphism in oop
MustafaIbrahimy
 
Unusual C# - OOP
Unusual C# - OOPUnusual C# - OOP
Unusual C# - OOP
Medhat Dawoud
 
Doppl development iteration #2
Doppl development   iteration #2Doppl development   iteration #2
Doppl development iteration #2
Diego 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 variables
Ravi_Kant_Sahu
 
C# interview questions
C# interview questionsC# interview questions
C# interview questions
Chetan Chaudhari
 
javainterface
javainterfacejavainterface
javainterface
Arjun Shanka
 
Abstract class in java
Abstract class in javaAbstract class in java
Abstract class in java
Lovely Professional University
 
Answer key1fer
Answer key1ferAnswer key1fer
Answer key1fer
Vigneshwaran Sankaran
 
Java interview questions
Java interview questionsJava interview questions
Java interview questions
Shashwat Shriparv
 
Object Oriented Programing JAVA presentaion
Object Oriented Programing JAVA presentaionObject Oriented Programing JAVA presentaion
Object Oriented Programing JAVA presentaion
Pritom Chaki
 
Javapolymorphism
JavapolymorphismJavapolymorphism
Javapolymorphism
karthikenlume
 
OOP in C#
OOP in C#OOP in C#
OOP in C#
DevMix
 
Complete java&j2ee
Complete java&j2eeComplete java&j2ee
Complete java&j2ee
Shiva 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 stickrun
AppPrizes Inc
 
Interview preparation techniques
Interview preparation techniquesInterview preparation techniques
Interview preparation techniques
Umar 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 deck
AppPrizes Inc
 
Islamic knowledge in tamil-1
Islamic knowledge in tamil-1Islamic knowledge in tamil-1
Islamic knowledge in tamil-1
Umar Ali
 
Twas The Night Before Christmas
Twas The Night Before ChristmasTwas The Night Before Christmas
Twas The Night Before Christmas
delta0ne
 
Twas The Night Before Christmas
Twas The Night Before ChristmasTwas The Night Before Christmas
Twas The Night Before Christmas
delta0ne
 
Asp.Net Abbreviations
Asp.Net AbbreviationsAsp.Net Abbreviations
Asp.Net Abbreviations
Umar Ali
 
OOPs difference faqs- 4
OOPs difference faqs- 4OOPs difference faqs- 4
OOPs difference faqs- 4
Umar Ali
 
Difference between rdf, odata and gdata
Difference between rdf, odata and gdataDifference between rdf, odata and gdata
Difference between rdf, odata and gdata
Umar Ali
 
Difference between ajax and silverlight
Difference between ajax and silverlightDifference between ajax and silverlight
Difference between ajax and silverlight
Umar Ali
 
Weak hadiths in tamil
Weak hadiths in tamilWeak hadiths in tamil
Weak hadiths in tamil
Umar 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

Intervies
InterviesIntervies
Intervies
roopa manoharan
 
Interview Questions and Answers for Java
Interview Questions and Answers for JavaInterview Questions and Answers for Java
Interview Questions and Answers for Java
Garuda Trainings
 
C language 100 questions answers
C language 100 questions answersC language 100 questions answers
C language 100 questions answers
sakshitiwari631430
 
Interfaces
InterfacesInterfaces
Interfaces
myrajendra
 
Core java interview faq
Core java interview faqCore java interview faq
Core java interview faq
Kumaran K
 
Day3
Day3Day3
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
Jeba Moses
 
CORBA IDL
CORBA IDLCORBA 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
manojsharma469262
 
Core java questions
Core java questionsCore java questions
Core java questions
Dinesh Reddy G
 
Core java questions
Core java questionsCore java questions
Core java questions
Dinesh Reddy G
 
Asp.net main
Asp.net mainAsp.net main
Asp.net main
YogeshDhamke2
 
Faqs in java
Faqs in javaFaqs in java
Faqs in java
prathap kumar
 
Core_Java_Interview.pdf
Core_Java_Interview.pdfCore_Java_Interview.pdf
Core_Java_Interview.pdf
ansariparveen06
 
Javainterview
JavainterviewJavainterview
Javainterview
Amarjit03
 
Core java interview questions1
Core java interview questions1Core java interview questions1
Core java interview questions1
Lahari Reddy
 
Java Basics
Java BasicsJava Basics
Java J2EE Interview Questions Part-1
Java J2EE Interview Questions Part-1Java J2EE Interview Questions Part-1
Java J2EE Interview Questions Part-1
Mindsmapped Consulting
 
Java J2EE Interview Questions Part-1
Java J2EE Interview Questions Part-1Java J2EE Interview Questions Part-1
Java J2EE Interview Questions Part-1
javatrainingonline
 
Java Notes
Java NotesJava Notes
Java Notes
Abhishek Khune
 

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 api
Umar 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 4
Umar 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 mvc
Umar 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 mvc
Umar 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 1
Umar Ali
 
Link checkers 1
Link checkers 1Link checkers 1
Link checkers 1
Umar Ali
 
Affiliate Networks Sites-1
Affiliate Networks Sites-1Affiliate Networks Sites-1
Affiliate Networks Sites-1
Umar Ali
 
Technical Video Training Sites- 1
Technical Video Training Sites- 1Technical Video Training Sites- 1
Technical Video Training Sites- 1
Umar 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 sites
Umar Ali
 
Bulughul Maram in tamil
Bulughul Maram in tamilBulughul Maram in tamil
Bulughul Maram in tamil
Umar 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 trends
Umar 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 engines
Umar Ali
 
Ajax difference faqs compiled- 1
Ajax difference  faqs compiled- 1Ajax difference  faqs compiled- 1
Ajax difference faqs compiled- 1
Umar Ali
 
ADO.NET difference faqs compiled- 1
ADO.NET difference  faqs compiled- 1ADO.NET difference  faqs compiled- 1
ADO.NET difference faqs compiled- 1
Umar Ali
 
Dotnet differences compiled -1
Dotnet differences compiled -1Dotnet differences compiled -1
Dotnet differences compiled -1
Umar Ali
 
.NET Differences List
.NET Differences List.NET Differences List
.NET Differences List
Umar 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

Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
Fwdays
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
Jason Yip
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
Edge AI and Vision Alliance
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their MainframeDigital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Precisely
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
Jakub Marek
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
saastr
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
Leveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and StandardsLeveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and Standards
Neo4j
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
Ivo Velitchkov
 
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and BioinformaticiansBiomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Neo4j
 

Recently uploaded (20)

Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their MainframeDigital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
Leveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and StandardsLeveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and Standards
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
 
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and BioinformaticiansBiomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
 

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.