locked
OOPS RRS feed

  • Question

  • User1162167369 posted

    Common statement - "Dotnet provides a common object oriented programming model across the languages it support."

    One of the languages supported by CLR is 'C'. does the above statement mean that 'C' supports OOPS???

    Regards,
    NetQuestions

    Sunday, May 30, 2010 3:43 AM

Answers

  • User-1618234021 posted

    Hi

    Yes, it means the classes in .NET. And yes even when you are printing a message you are using the api.

    You use System.Console.Write("Hello world")

    Now here Console is a class in System namspace with a function Write()

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, May 30, 2010 9:21 AM

All replies

  • User-1618234021 posted

    Hi

    This means, that .NET provides same way of accessing its OOP based api across all languages of .NET like C#, VB.NET etc with a difference of syntax.

    All languages of .NET framework like C#, VB.NET, Visual C++, J# are OOP languages.

    Sunday, May 30, 2010 7:49 AM
  • User1162167369 posted

    Hi Adeel,

    When you mentioned 'accessing OOP based api', did you mean base class library functions? 

    please help me with an example. I am slightly confused here.

    say, I were to create a simple dotnet application with 'C#' and 'C'. suppose it is to print hello world message with function to

    display writtten in C. Is an api being used here?

    regards,

    NetQuestions

    Sunday, May 30, 2010 8:56 AM
  • User-1618234021 posted

    Hi

    Yes, it means the classes in .NET. And yes even when you are printing a message you are using the api.

    You use System.Console.Write("Hello world")

    Now here Console is a class in System namspace with a function Write()

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, May 30, 2010 9:21 AM
  • User-319574463 posted

    One of the languages supported by CLR is 'C'. does the above statement mean that 'C' supports OOPS???

    I think you mean C#, C is not an object orientated language in the way that C++ or C# are.

    To understand the CLR, I suggest that you get or borrow a book like CLR via C# http://www.books-by-isbn.com/0-7356/0735627045-CLR-via-C-3rd-Edition-Pro-Developer-Jeffrey-Richter-0-7356-2704-5.html

    Sunday, May 30, 2010 12:23 PM