Object Oriented Programing(oops)

Sunday, August 5, 2018

What is Inheritance-

1. Inheritance:

Acquiring the properties of one class to another class is called inheritance.

Inheritance provides reuse ability by allowing us to extend an existing class.

Four Type of Inheritance 

1. Single Inheritance

2. Hierarchical Inheritance

3. Multi-level Inheritance 

4. Multiple Inheritance(Achieved by Interface)



Posted by Alok at 10:24 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

My photo
Alok
View my complete profile

Blog Archive

  • ►  2023 (7)
    • ►  April (3)
    • ►  March (3)
    • ►  February (1)
  • ►  2022 (10)
    • ►  November (6)
    • ►  October (2)
    • ►  September (1)
    • ►  August (1)
  • ►  2021 (2)
    • ►  August (2)
  • ►  2020 (1)
    • ►  July (1)
  • ►  2019 (29)
    • ►  October (3)
    • ►  September (3)
    • ►  August (4)
    • ►  July (4)
    • ►  June (2)
    • ►  April (1)
    • ►  March (9)
    • ►  February (3)
  • ▼  2018 (25)
    • ►  December (4)
    • ►  September (2)
    • ▼  August (11)
      • In what scenarios will you use a abstract class an...
      • What is Is-A relationship and Has-A relationship.
      • What is difference composition and Aggregation.
      • What is Coupling
      • What is Shadowing (Method Hiding).?
      • Difference between REF and OUT
      • OOPs Important Questions
      • Sealed Class and Sealed Method in C#
      • What is Inheritance-
      • What is Constructor?
      • Example of Explicit Interface
    • ►  July (8)
Picture Window theme. Powered by Blogger.