Posts

Showing posts from July, 2022

Object oriented properties

 Object oriented Properties  There are types of OOPS  Inheritance Constructor Function overloading  Class Security  Error handling (exceptions) Polymorphism Inheritance Inheritance only use Multiple classes  Types of classes in Inheritance  1.Base class  2.Derive class Rules of Inheritance 1.Inheritance cannot count main class 2.Only last class object create . syntax Derive class: base class  Single Inheritance  Only one base class and derive class. Multiple Inheritance class A show() classB display():A classC parameter():B classD view():C Inheritance with parameter eg. class A  { public void show (int a) { C.W(a); } }  Function Overloading  Function name is similar but activities are different is called function overloading. C# maths function  1.Max function  All math function stored in math library. syntax : consolewriteline(math. max(value)) C# string handling function C# Bullion Expression Bullion return two ...

OOPS (class)

 OOPS (0bject oriented programming language) In object oriented programming we used class & object. 1.Class Class is a collection of member & Method. All Member representing a variable. All function representing a method. Class 1.Member(var, int a)           2.Method(function, display) Q. How to create a class ans: class name   { Member; Method() } Rules for creating a class  1. Main class cannot be count in object oriented programming. 2. All class is to be create before the main class. Q. How to access class  ans: Rules 1. All class is to be access with the help of object. Object is communication between class help of object. Rule All object is to be created inside the main body. Syntax of object  Classname objectname =new classname(); NOTE;  By default all methods inside the class in private. Parameter passing in class & object. **Class and object in database   All class and object fundamental is used to han...